07-21-2022, 02:43 PM
I wont to solve Keplers equation with this program,
but something is wrong with my guess.
Is it possible to solve this with one of the build in commands?
but something is wrong with my guess.
Is it possible to solve this with one of the build in commands?
Code:
EXPORT Kepler()
BEGIN
LOCAL M:=5;
LOCAL e0:=0.1;
LOCAL E;
AAngle:=2; // do calculations in degree
// --------------------------------
// wont to solve Kepler's equation:
// E = M + e0 * SIN(E)
// ---------------------------------
E:=FNROOT(E-M-e0*SIN(E),E,1);
PRINT(E);
END;