Function trv::maths::eval_complex_in_polar#

Function Documentation#

std::complex<double> trv::maths::eval_complex_in_polar(double r, double theta)#

Evaluate a complex number \( r e^{i \theta} \) in the polar form.

Parameters
  • r – Modulus \( r \).

  • theta – Argument \( \theta \).

Returns

Value of the complex number.