Re:The number pi has an evil twin
by klodolph on Wednesday December 25, 2024 @03:12AM
(#42507621)
For a circle, pi is the ratio of the circumference to its diameter. Every ellipse also has a circumference-to-diameter ratio. Well, two ratios, since ellipses have both major and minor diameters. You might think that there would be some kind of clever formula that let you calculate this ratio, but there isn’t! Instead, these pi-like numbers for ellipses are expressed as integrals:
Scroll down to “Complete elliptic integral of the second kind”. That is your search term for looking it up. It is kind of a surprise that there isn’t some neat formula for calculating the circumference of an ellipse. The formula given is:
C = 4 a E(e)
The function E(e) here can be calculated in a few different ways, but it is really just defined as an integral that measures the length of a single ellipse arc.
Here, e is eccentricity. E(0) therefore gives π/4 since a circle has eccentricity 0. E(1) also therefore gives 1. So the E(e) function goes from π/4 to 1 as e goes from 0 to 1.
https://en.wikipedia.org/wiki/Elliptic_integral
Scroll down to “Complete elliptic integral of the second kind”. That is your search term for looking it up. It is kind of a surprise that there isn’t some neat formula for calculating the circumference of an ellipse. The formula given is:
The function E(e) here can be calculated in a few different ways, but it is really just defined as an integral that measures the length of a single ellipse arc.Here, e is eccentricity. E(0) therefore gives π/4 since a circle has eccentricity 0. E(1) also therefore gives 1. So the E(e) function goes from π/4 to 1 as e goes from 0 to 1.