code: def most_unstable_cape_cin(pressure, temperature, dewpoint, **kwargs):
      r
      _, parcel_temperature, parcel_dewpoint, parcel_idx = most_unstable_parcel(pressure,
                                                                                temperature,
                                                                                dewpoint,
                                                                                **kwargs)
      mu_profile = parcel_profile(pressure[parcel_idx:], parcel_temperature, parcel_dewpoint)
      return cape_cin(pressure[parcel_idx:], temperature[parcel_idx:],
                      dewpoint[parcel_idx:], mu_profile)
docs: r"""Calculate most unstable CAPE/CIN.
  
      Calculate the convective available potential energy (CAPE) and convective inhibition (CIN)
      of a given upper air profile and most unstable parcel path. CIN is integrated between the
      surface and LFC, CAPE is integrated between the LFC and EL (or top of sounding).
      Intersection points of the measured temperature profile and parcel profile are linearly
      interpolated.
  
      Parameters
      ----------
      pressure : `pint.Quantity`
          Pressure profile
      temperature : `pint.Quantity`
          Temperature profile
      dewpoint : `pint.Quantity`
          Dewpoint profile
  
      Returns
      -------
      `pint.Quantity`
          Most unstable Convective Available Potential Energy (CAPE).
      `pint.Quantity`
          Most unstable Convective INhibition (CIN).
  
      See Also
      --------
      cape_cin, most_unstable_parcel, parcel_profile