Grasshopper

algorithmic modeling for Rhino

can any one help me about integral computing in grasshopper?

Views: 2311

Replies to This Discussion

Probably, but you'd need to be more specific about what you are integrating.
These might help for starters:
http://en.wikipedia.org/wiki/Integral
http://www.grasshopper3d.com/forum/topics/gh-feature-request-automatic
Raminpb,

I am thinking that it's possible, and probably interesting, to go back to the definition of Integral, draw the curve, convert to a surface and extract its area...
Back in the days there were even "graphic" calculations of the Integrals when computers were not to hand.

As Daniel points out, it depends on what you want to integrate.

Kind regards,
William.
Dear William

i can't do that, because computing of the integral is an step of curve drawing process . inf act the curve is an Euler elastica and to draw it , you need to solve some equations which are composed of elliptic integrals.

i'm trying to find a way to implement Simpson Quadrature or other numerical integral methods

Regards

Ramin
Try the gaussian integration method. This involves sampling the value of the function at specific sampling points.

2 pt sampling, points located at +/- 0.57735 weighting factor=1

3 pt sampling, points located at 0 weighting factor=0.5555, +/- 0.77 weighting factor=0.8888

This requires the integration limits to be between -1 to +1.
If your limits are different, you will need to substitute a new variable to normalise the limits.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service