celeries.perham3pla.PerHam3pla.eval#

PerHam3pla.eval(k, S, n0)#

Evaluation of the serie S at n0 \(=(n_1, n_2, n_3)\), where S is the returned value of H3.angle(k) and H3 = PerHam3pla(ev = False)

When many evaluations of the same serie at different n0 are needed, calling H3 = PerHam3pla(ev = True, n0 = n0) and S = H3.angle(k) many times is slow as the same serie is computed from scratch every time. In this case, it is much faster to call H3 = PerHam3pla(ev = False) and S = H3.angle(k) only once and then to call H3.eval(k, S, n0) many times.

Author : Jeremy Couturier. https://jeremycouturier.com

Parameters:
k: Tuple of int

Coefficients \((k_1, k_2, k_3)\) of the mean longitudes for the 3-planet angle.

S: Serie

A serie returned by the method angle(k).

n0Tuple of float

The nominal mean motions \((n_1, n_2, n_3)\) in any units.

Returns:
RSeries

The serie S evaluated at n0 \(=(n_1, n_2, n_3)\)