kyosu v0.1.0
Complex Without Complexes
 
Loading...
Searching...
No Matches

◆ from_polarpi

kyosu::from_polarpi = eve::functor<from_polarpi_t>
inlineconstexpr

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

Callable Signatures

#include kyosu/quaternion.hpp>`

Callable Signatures

namespace eve
{
template<eve::floating_ordered_value T0, eve::floating_ordered_value T1>,
auto from_polarpi( T0 rho, T1 theta) const noexcept;
}
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