meepmeep.numba2d.sep_c

Contents

meepmeep.numba2d.sep_c#

meepmeep.numba2d.sep_c(time: float | ndarray[tuple[Any, ...], dtype[_ScalarT]], c: ndarray[tuple[Any, ...], dtype[_ScalarT]]) float | ndarray[tuple[Any, ...], dtype[_ScalarT]][source]#

Evaluate the sky-projected planet-star separation in the units of stellar radii at an expansion-point-centered time.

Centered counterpart of sep: assumes time has already been shifted to be relative to the expansion point, evaluates the 2D position, and returns sqrt(x^2 + y^2).

Accepts a scalar time or a 1-D array of times and dispatches to the appropriate kernel at compile time (inside @njit) or at call time (pure Python).

Parameters:
timefloat or NDArray

Time relative to the Taylor series expansion point.

cNDArray

A (2, 5) coefficient matrix produced by solve2d.

Returns:
dfloat or NDArray

Projected planet-star center distance in units of stellar radii.