CONAN.utils.k_to_Mp
===================

.. py:function:: CONAN.utils.k_to_Mp(k, P, Ms, i, e, Mp_unit='star')

   Compute the mass of a planet from the rv semi amplitude following https://iopscience.iop.org/article/10.1086/529429/pdf

   :param k: The RV semi-amplitude in m/s.
   :type k: float, ufloat, array-like;
   :param P: The period of the planet in days.
   :type P: float, ufloat, array-like;
   :param Ms: The mass of the star in solar masses.
   :type Ms: float, ufloat, array-like;
   :param i: The inclination of the orbit in degrees.
   :type i: float, ufloat, array-like;
   :param e: The eccentricity of the orbit.
   :type e: float, ufloat, array-like;
   :param Mp_unit: The unit of the mass of the planet ["star","jup"]
                   Default is "star" which returns the mass in units of the mass of the star.
   :type Mp_unit: str;

   :returns: **Mp** -- The mass of the planet in Jupiter masses.
   :rtype: array-like;

