Similar to emkepl, except input is 1-e
.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=wp), | intent(in) | :: | e1 | |||
real(kind=wp), | intent(in) | :: | ee |
pure function emkep(e1,ee) implicit none real(wp) :: emkep real(wp),intent(in) :: e1 real(wp),intent(in) :: ee real(wp) :: x, ee2, term, d, x0 x = e1*sin(ee) ee2 = -ee*ee term = ee d = zero do d = d + two term = term*ee2/(d*(d + one)) x0 = x x = x - term if (x==x0) exit end do emkep = x end function emkep