3#ifndef pRC_CORE_COMPLEX_FUNCTIONS_ATAN_H
4#define pRC_CORE_COMPLEX_FUNCTIONS_ATAN_H
11 static inline constexpr auto atan(
T const &a)
13 using R =
typename T::Type;
15 auto const rs = a.real() * a.real();
16 auto const t =
unit<R>() - rs - a.imag() * a.imag();
18 auto num = a.imag() +
unit<R>();
19 auto den = a.imag() -
unit<R>();
Definition cholesky.hpp:10
static constexpr auto atan(T const &a)
Definition atan.hpp:11
static constexpr auto unit()
Definition unit.hpp:13
Complex(T const &) -> Complex< T >
static constexpr decltype(auto) real(X &&a)
Definition real.hpp:12
static constexpr decltype(auto) imag(X &&a)
Definition imag.hpp:12
static constexpr auto identity()
Definition identity.hpp:13
static constexpr auto log(T const &a)
Definition log.hpp:11
static constexpr auto atan2(XA &&a, XB &&b)
Definition atan2.hpp:15