Module ellipse

Source
Expand description

Implementation of ellipse shape.

Structsยง

Ellipse
An ellipse.

Functionsยง

agm_elliptic_perimeter ๐Ÿ”’
Calculates circumference C of an ellipse with radii (x, y) using the arithmetic-geometric mean, as described in equation 19.8.6 of https://web.archive.org/web/20240926233336/https://dlmf.nist.gov/19.8#i.
kummer_elliptic_perimeter ๐Ÿ”’
Calculates circumference C of an ellipse with radii (x, y) as the infinite series
kummer_elliptic_perimeter_range ๐Ÿ”’
This calculates the error range of kummer_elliptic_perimeter. That function returns a lower bound on the true value, and though we do not know what the remainder of the infinite series sums to, we can calculate an upper bound: