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

◆ to_polarpi

kyosu::to_polarpi = eve::functor<to_polarpi_t>
inlineconstexpr

returns modulus and argument (in \(\pi\) multiples) of the input.

Header file

#include <kyosu/functions.hpp>

Callable Signatures

namespace kyosu
{
template<kyosu::concepts::complex T> constexpr T to_polarpi(T z) noexcept;
template<eve::floating_value T> constexpr T to_polarpi(T z) noexcept;
}
constexpr auto to_polarpi
returns modulus and argument (in multiples) of the input.
Definition: to_polarpi.hpp:71
Main KYOSU namespace.
Definition: cinf.hpp:13

Parameters

  • z: Value to put in polar coordinates.

Return value

Returns The kumi tuple {rho, theta}. for real and complex with theta in \(\pi\) multiples.

Example