Go to the documentation of this file. 1 SUBROUTINE kepler(AM,E,EA,SE,CE)
33 IMPLICIT DOUBLE PRECISION (a-h,o-z)
34 DATA tol1,tol2/1.d-5,1.d-8/
35 DATA half,zero,one/0.5d0,0.d0,1.d0/
36 DATA pi,tpi/3.141592653589793d0,6.283185307179586d0/
40 IF (abm.LE.
pi)
GO TO 20
41 IF (am.GT.
pi) am=am-tpi
42 IF (am.LT.-
pi) am=am+tpi
45 ea=abm+e*sm/(one-dsin(abm+e)+sm)
55 IF (dabs(c).GT.tol1)
GO TO 30
56 IF (dabs(c).LT.tol2)
GO TO 40
67 IF (am.GT.zero)
RETURN
subroutine kepler(AM, E, EA, SE, CE)