Lambert class
class pykep.lambert_problem(r0=[1, 0, 0], r1=[0, 1, 0], tof=pi / 2, mu=1., cw=False, multi_revs=0) : Args: : r0 (1D array-like): Cartesian components of the first position vector [xs, ys, zs]. Defaults to [1,0,0].
code
*r1* (1D array-like): Cartesian components of the second position vector [xf, yf, zf]. Defaults tot [0,1,0].
*tof* ([`float`](https://docs.python.org/3/builtins/functions.html#float)): time of flight. Defaults to .
*mu* ([`float`](https://docs.python.org/3/builtins/functions.html#float)): gravitational parameter. Defaults to 1.
*cw* ([`bool`](https://docs.python.org/3/builtins/functions.html#bool)): True for retrograde motion (clockwise). Defaults to False.
*multi\_revs* ([`float`](https://docs.python.org/3/builtins/functions.html#float)): Maximum number of multiple revolutions to be computed. Defaults to 0.
Note
Units need to be consistent. The multirev Lambert’s problem will be solved upon construction
and its solution stored in data members.
Examples:
: ```defaultimport pykep as pk import numpy as np r0 = [1,0,0] r1 = [0,1,0] tof = np.pi/2 mu = 1. lp = pk.lambert_problem(r0, r1, tof, mu) lp.v0[0] [-4.1028493158958256e-16, 1.0000000000000002, 0.0]
code
*property* Nmax
: The maximum number of iterations allowed.
*property* cw
: The clockwise parameter.
*property* iters
: The number of iterations made.
*property* mu
: The gravitational parameter of the attracting body.
*property* r0
: The first point.
*property* r1
: The second point.
*property* tof
: The time of flight between the two points.
*property* v0
: The velocity at the first point.
*property* v1
: The velocity at the second point.
*property* x
: The Battin variable x along the time of flight curves.