src/parser/Unit.hh
inline Unit pow(Unit const &b, double const a) {
  Unit result = b;
  result.m *= a;
  result.kg *= a;
  result.s *= a;
  result.A *= a;
  result.K *= a;
  result.mol *= a;
  result.cd *= a;
  result.rad *= a;
  result.sr *= a;
  result.conv = std::pow(b.conv, a);

  return result;
}
//------------------------------------------------------------------------------------------------//
/*!
 * \brief Compute unit raised to the power of a scalar.
 *
 * \param b Unit base
 * \param a Scalar power
 * \return unit raised to power of the scalar
 */
\brief Compute unit raised to the power of a scalar.
\param b Unit base
\param a Scalar power
\return unit raised to power of the scalar
\ brief Compute unit raised to the power of a scalar . \ param b Unit base \ param a Scalar power \ return unit raised to power of the scalar
inline Unit pow(Unit const &b, double const a) {
  Unit result = b;
  result.m *= a;
  result.kg *= a;
  result.s *= a;
  result.A *= a;
  result.K *= a;
  result.mol *= a;
  result.cd *= a;
  result.rad *= a;
  result.sr *= a;
  result.conv = std::pow(b.conv, a);
  return result;
}
inline Unit pow ( Unit const & b , double const a ) { Unit result = b ; result . m *= a ; result . kg *= a ; result . s *= a ; result . A *= a ; result . K *= a ; result . mol *= a ; result . cd *= a ; result . rad *= a ; result . sr *= a ; result . conv = std :: pow ( b . conv , a ) ; return result ; }
\brief Compute unit raised to the power of a scalar.
\ brief Compute unit raised to the power of a scalar .