Callable object computing a complex or a general Cayley-Dickson from a polar representation, with the argument in \(\pi\) multiples.
This function is the reciprocal of to_polar
#include kyosu/quaternion.hpp>`
namespace eve
{
template<eve::floating_ordered_value T0, eve::floating_ordered_value T1>,
}
constexpr auto from_polarpi
Callable object computing a complex or a general Cayley-Dickson from a polar representation,...
Definition: from_polarpi.hpp:76
Parameters
rho : modulus. theta: argument.
Return value
the complex number rho*exp_ipi(theta).
- Note
- the entries constitue a proper polar representation if rho is non-negative, however the formula is used as is.
Example