Perimeter of Ellipse
|
03-05-2016, 04:19 PM
Post: #1
|
|||
|
|||
Perimeter of Ellipse
Although simple formulae for the perimeter of an ellipse exist, they are only approximations. Exact formulae are complicated. The following program uses a converging iteration technique instead. Ported from a QBASIC program by Gérard P. Michon.
Syntax: EllipsePerimeter(a,b), where a & b are the lengths of the axes (order doesn't matter) Output: perimeter of ellipse Examples: EllipsePerimeter(0.5, 0.5) --> 3.14159265359 EllipsePerimeter(3, 4) --> 22.1034921607 Code: gk(h); <0|ɸ|0> -Joe- |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 6 Guest(s)