astrodynx.twobody.rp_islower_rmin

astrodynx.twobody.rp_islower_rmin#

astrodynx.twobody.rp_islower_rmin(rmin, r, v, mu=1)[source]#

Returns True if the periapsis radius is lower than the minimum radius.

Parameters:
  • rmin (DTypeLike) – The minimum radius.

  • r (ArrayLike) – (3,) The position vector.

  • v (ArrayLike) – (3,) The velocity vector.

  • mu (DTypeLike) – (optional) The gravitational parameter.

Return type:

Array

Returns:

True if the periapsis radius is lower than the minimum radius, False otherwise.

Examples

A simple example:

>>> import jax.numpy as jnp
>>> import astrodynx as adx
>>> rmin = 0.97
>>> r = jnp.array([1.0, 0.0, 0.0])
>>> v = jnp.array([0.0, 1.0, 0.0])
>>> adx.twobody.rp_islower_rmin(rmin, r, v)
Array(False, dtype=bool)