ellipsoid

PHP Ellipse Circumference Function - Numerical Solution to the Complete Elliptic Integral of the second kind

Submitted by Jay-Tanner on
PHP Ellipse Circumference Function This PHP function computes the circumference or perimeter of an ellipse, spheroid, circle, or sphere by evaluating the complete elliptic integral of the second kind using an infinite power series summation based on Legendre polynomials. Computing the circumference of a circle is easy, but when it takes the form of an ellipse, there is no simple formula and the