P_m_to_a

twobody.P_m_to_a(P, m)[source]

Compute the semi-major axis given the orbital period and total mass.

Parameters
Pquantity_like [time]

Orbital period.

mquantity_like [mass]

Total mass.