Information from: Perimeter of an Ellipse
This is an exact equation. It requires an infinite number of terms to get the exact perimeter. With fewer terms, however, we can calculate a very close approximation.
This is the expand series with 4 terms. It shows terms n=0 to n=3 (1, 1/4, 1/64, 1/256).
With more terms we get a more accurate answer.
the next term (n=4) is (25/16384)h4
the next term (n=5) is (49/65536)h5
the next term (n=6) is (441/1048576)h6
the next term (n=7) is (1089/4194304)h7
Note: For eccentricities less than 0.5 (h < 0.005), the error is at the limits of double-precision floating-point after the h4 term. In other words the precision of the hardware/software is exceeded.
(In other words 1, 1/4, 1/64, 1/256, ...)