Brian Dunning's FileMaker Custom Functions

Romberg_EI

Calculates Complete Elliptic Integral of the Second Kind Using Romberg's Method

  Average rating: 4.4 (16 votes) Log in to vote

Dr. Ronald W. Satz   Dr. Ronald W. Satz - Show more from this author
Transpower Corporation
http://www.transpowercorp.com

Share on Facebook Share on Twitter

  Sample input:
Romberg_EI(0;Pi/2;0.01670862)
  Sample output:
1.571

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

This function calls EI (ecc ; theta ) (which is equal to Sqrt ( 1- (ecc ^ 2 ) * ( ( Sin ( theta ) ) ^ 2 ) ) ) (where ecc = ellipse eccentricity and theta = angle in radians) to compute the integrand of the Complete Elliptic Integral of the Second kind at 33 points. It then takes these values to compute the Romberg value for the Complete Elliptic Integral of the Second kind--for instance, the perimeter of an elliptic orbit (which would be 4 x a x the value computed, where a = semi-major axis of the ellipse).

 

Comments

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 15 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: