Grasshopper

algorithmic modeling for Rhino

Here the script in C# of what Daniel González Abalde proposed for Bessel function

http://www.grasshopper3d.com/profiles/blogs/how-to-write-bessel-fun...

1) Download the Meta.Numerics.dll from the "Content ZIP" from https://metanumerics.codeplex.com/releases/view/611568

2) Unblock dll file.

3) In GH, invoque a VB script component. Right click > manage assemblies > add Meta.Numerics.dll.

4) Set first param as "nu" and type hint double. Set second param as "x" and type hint double. Set First ouput as F and second output as S.

5) Double click over component and type:

Dim sp As meta.Numerics.Functions.SolutionPair = Meta.Numerics.Functions.AdvancedMath.Bessel(nu, x)
F = sp.FirstSolutionValue
S = sp.SecondSolutionValue

Views: 625

Attachments:

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service