Universal Numbers Library C++ API
sw::universal -- header-only custom arithmetic types (posit, cfloat, lns, fixpnt, dd/qd, and more)
Loading...
Searching...
No Matches
complex_functions.hpp File Reference
#include <complex>
#include <cmath>
#include <universal/math/complex/complex_impl.hpp>
#include <universal/math/complex/complex_native_real.hpp>

Namespaces

namespace  sw
 required std libraries
namespace  sw::universal
namespace  sw::universal::detail
namespace  sw::universal::detail::cx

Functions

template<ComplexCompatible T>
std::complex< double > sw::universal::detail::to_std_complex (const complex< T > &c)
template<ComplexCompatible T>
complex< T > sw::universal::detail::from_std_complex (const std::complex< double > &c)
template<typename T>
complex< T > sw::universal::detail::cx::times_i (const complex< T > &z)
template<typename T>
complex< T > sw::universal::detail::cx::times_minus_i (const complex< T > &z)
template<typename T>
complex< T > sw::universal::detail::cx::cexp (const complex< T > &z)
template<typename T>
complex< T > sw::universal::detail::cx::clog (const complex< T > &z)
template<typename T>
complex< T > sw::universal::detail::cx::csqrt (const complex< T > &z)
template<typename T>
complex< T > sw::universal::detail::cx::csinh (const complex< T > &z)
template<typename T>
complex< T > sw::universal::detail::cx::ccosh (const complex< T > &z)
template<typename T>
complex< T > sw::universal::detail::cx::ctanh (const complex< T > &z)
template<typename T>
complex< T > sw::universal::detail::cx::kahan_asin (const complex< T > &z)
template<typename T>
complex< T > sw::universal::detail::cx::casinh (const complex< T > &z)
template<typename T>
complex< T > sw::universal::detail::cx::casin (const complex< T > &z)
template<typename T>
complex< T > sw::universal::detail::cx::cacos (const complex< T > &z)
template<typename T>
complex< T > sw::universal::detail::cx::cacosh (const complex< T > &z)
template<typename T>
complex< T > sw::universal::detail::cx::catanh (const complex< T > &z)
template<typename T>
complex< T > sw::universal::detail::cx::catan (const complex< T > &z)
template<typename T>
complex< T > sw::universal::detail::cx::cpow_int (const complex< T > &z, int n)
template<ComplexCompatible T>
complex< T > sw::universal::exp (const complex< T > &c)
 Complex exponential: exp(a + bi) = exp(a) * (cos(b) + i*sin(b)).
template<ComplexCompatible T>
complex< T > sw::universal::log (const complex< T > &c)
 Complex natural logarithm: log(z) = log(|z|) + i*arg(z).
template<ComplexCompatible T>
complex< T > sw::universal::log10 (const complex< T > &c)
 Complex base-10 logarithm.
template<ComplexCompatible T>
complex< T > sw::universal::sqrt (const complex< T > &c)
 Complex square root.
template<ComplexCompatible T>
complex< T > sw::universal::pow (const complex< T > &base, const complex< T > &exponent)
 Complex power: base^exp (both complex).
template<ComplexCompatible T>
complex< T > sw::universal::pow (const complex< T > &base, const T &exponent)
 Complex power: base^exp (complex base, real exponent).
template<ComplexCompatible T>
complex< T > sw::universal::pow (const T &base, const complex< T > &exponent)
 Complex power: base^exp (real base, complex exponent).
template<ComplexCompatible T>
complex< T > sw::universal::pow (const complex< T > &base, int exponent)
 Complex power: base^exp (complex base, integer exponent).
template<ComplexCompatible T>
complex< T > sw::universal::sin (const complex< T > &c)
 Complex sine.
template<ComplexCompatible T>
complex< T > sw::universal::cos (const complex< T > &c)
 Complex cosine.
template<ComplexCompatible T>
complex< T > sw::universal::tan (const complex< T > &c)
 Complex tangent.
template<ComplexCompatible T>
complex< T > sw::universal::asin (const complex< T > &c)
 Complex arc sine.
template<ComplexCompatible T>
complex< T > sw::universal::acos (const complex< T > &c)
 Complex arc cosine.
template<ComplexCompatible T>
complex< T > sw::universal::atan (const complex< T > &c)
 Complex arc tangent.
template<ComplexCompatible T>
complex< T > sw::universal::sinh (const complex< T > &c)
 Complex hyperbolic sine.
template<ComplexCompatible T>
complex< T > sw::universal::cosh (const complex< T > &c)
 Complex hyperbolic cosine.
template<ComplexCompatible T>
complex< T > sw::universal::tanh (const complex< T > &c)
 Complex hyperbolic tangent.
template<ComplexCompatible T>
complex< T > sw::universal::asinh (const complex< T > &c)
 Complex inverse hyperbolic sine.
template<ComplexCompatible T>
complex< T > sw::universal::acosh (const complex< T > &c)
 Complex inverse hyperbolic cosine.
template<ComplexCompatible T>
complex< T > sw::universal::atanh (const complex< T > &c)
 Complex inverse hyperbolic tangent.