3#ifndef pRC_CORE_COMPLEX_FUNCTIONS_ATANH_H
4#define pRC_CORE_COMPLEX_FUNCTIONS_ATANH_H
11 static inline constexpr auto atanh(
T const &a)
13 using R =
typename T::Type;
15 auto const is = a.imag() * a.imag();
16 auto const t =
unit<R>() - is - a.real() * a.real();
18 auto num =
unit<R>() + a.real();
19 auto den =
unit<R>() - a.real();
Definition cholesky.hpp:10
static constexpr auto unit()
Definition unit.hpp:13
Complex(T const &) -> Complex< T >
static constexpr auto atanh(T const &a)
Definition atanh.hpp:11
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