original_docstring: An iterative function to solve kepler's equation.
docstring: An iterative function to solve kepler's equation.
docstring_tokens: An iterative function to solve kepler ' s equation .
code: def solve_kepler(self, M):
          """An iterative function to solve kepler's equation."""
          E0 = M
          E = E0
          x0 = E0
          error = 1.0
          i = 0
          while(abs(error) > 1e-8):
              x1 = x0 - self.kepler2order(M, x0)
              E = x1
              error = x1 - x0
              x0 = x1
  
              #print("error: {0} E: {1}".format(error, E))
              i += 1
  
          return E
code_tokens: def solve_kepler ( self , M ) : E0 = M E = E0 x0 = E0 error = 1.0 i = 0 while ( abs ( error ) > 1e-8 ) : x1 = x0 - self . kepler2order ( M , x0 ) E = x1 error = x1 - x0 x0 = x1 i += 1 return E
short_docstring: An iterative function to solve kepler's equation.
short_docstring_tokens: An iterative function to solve kepler ' s equation .
comment: """An iterative function to solve kepler's equation."""$SEP$#print("error: {0} E: {1}".format(error, E))