26#ifndef _CXSC_COMPLEX_HPP_INCLUDED
27#define _CXSC_COMPLEX_HPP_INCLUDED
69 explicit inline complex(
const real &r) noexcept : re(r),im(0.0) { }
348complex divn (
const complex &,
const complex &);
349complex divd (
const complex &,
const complex &);
350complex divu (
const complex &,
const complex &);
351complex muld (
const complex &,
const complex &)
noexcept;
352complex mulu (
const complex &,
const complex &)
noexcept;
472#include "complex.inl"
The Data Type cdotprecision.
The Data Type cmatrix_slice.
friend std::istream & operator>>(std::istream &, complex &) noexcept
Implementation of standard input method.
friend complex operator+(const complex &) noexcept
Implementation of standard algebraic positive sign operation.
friend complex & operator/=(complex &, const complex &) noexcept
Implementation of standard algebraic division and allocation operation.
friend complex & SetIm(complex &a, const real &b)
Sets the imaginary part of a complex value.
friend bool operator!=(const complex &a, const complex &b) noexcept
Implementation of standard negated equality operation.
friend complex _complex(const cmatrix_slice &) noexcept
Deprecated typecast, which only exist for the reason of compatibility with older versions of C-XSC.
friend complex conj(const complex &) noexcept
Returns the conjugated complex value.
complex(const real &a, const real &b) noexcept
Constructor of class complex.
complex & operator=(const real &r) noexcept
Implementation of standard assigning operator.
complex(void) noexcept
Constructor of class complex.
friend real & Re(complex &a)
Returns the real part of the complex value.
friend complex & operator-=(complex &, const complex &) noexcept
Implementation of standard algebraic subtraction and allocation operation.
friend complex operator/(const complex &, const complex &) noexcept
Implementation of standard algebraic division operation.
friend complex operator-(const complex &) noexcept
Implementation of standard algebraic negative sign operation.
friend complex operator*(const complex &, const complex &) noexcept
Implementation of standard algebraic multiplication operation.
friend real abs(complex) noexcept
Returns the absolute value of a complex value.
friend std::ostream & operator<<(std::ostream &, const complex &) noexcept
Implementation of standard output method.
friend complex & operator+=(complex &, const complex &) noexcept
Implementation of standard algebraic addition and allocation operation.
friend complex divn(const complex &, const complex &)
Returns the nearest rounded result of the division operation.
friend complex & SetRe(complex &a, const real &b)
Sets the real part of a complex value.
friend complex _complex(const cvector &) noexcept
Deprecated typecast, which only exist for the reason of compatibility with older versions of C-XSC.
friend complex & operator*=(complex &, const complex &) noexcept
Implementation of standard algebraic multiplication and allocation operation.
friend bool operator!(const complex &a) noexcept
Implementation of standard negation operation.
friend bool operator==(const complex &a, const complex &b) noexcept
Implementation of standard equality operation.
complex(const real &r) noexcept
Constructor of class complex.
complex(const cmatrix_slice &) noexcept
Constructor of class complex.
friend real abs2(const complex &) noexcept
Returns the absolute value of a complex value.
friend complex _complex(const cvector_slice &) noexcept
Deprecated typecast, which only exist for the reason of compatibility with older versions of C-XSC.
friend complex _complex(const cdotprecision &a) noexcept
Deprecated typecast, which only exist for the reason of compatibility with older versions of C-XSC.
friend real & Im(complex &a)
Returns the imaginary part of the complex value.
friend complex _complex(const cmatrix &) noexcept
Deprecated typecast, which only exist for the reason of compatibility with older versions of C-XSC.
The Data Type cvector_slice.
The Data Type dotprecision.
The Multiple-Precision Data Type l_complex.
The namespace cxsc, providing all functionality of the class library C-XSC.
cinterval sqrtp1m1(const cinterval &z) noexcept
Calculates .
complex _complex(const real &a) noexcept
Deprecated typecast, which only exist for the reason of compatibility with older versions of C-XSC.
cinterval exp2(const cinterval &z) noexcept
Calculates .
cinterval sqrt1mx2(const cinterval &z) noexcept
Calculates .
cinterval asinh(const cinterval &z) noexcept
Calculates .
cinterval coth(const cinterval &z) noexcept
Calculates .
cinterval log2(const cinterval &z) noexcept
Calculates .
cinterval power(const cinterval &z, int n) noexcept
Calculates .
cinterval log10(const cinterval &z) noexcept
Calculates .
cinterval ln(const cinterval &z) noexcept
Calculates .
cinterval pow(const cinterval &z, const interval &p) noexcept
Calculates .
cinterval sinh(const cinterval &z) noexcept
Calculates .
cinterval asin(const cinterval &z) noexcept
Calculates .
cinterval tan(const cinterval &z) noexcept
Calculates .
cinterval exp10(const cinterval &z) noexcept
Calculates .
interval arg(const cinterval &z) noexcept
Calculates .
std::list< cinterval > sqrt_all(const cinterval &z)
Calculates and returns all possible solutions.
cinterval acos(const cinterval &z) noexcept
Calculates .
cinterval sqrtx2m1(const cinterval &z) noexcept
Calculates .
cinterval acosh(const cinterval &z) noexcept
Calculates .
cinterval cosh(const cinterval &z) noexcept
Calculates .
cinterval cos(const cinterval &z) noexcept
Calculates .
cinterval sqrt1px2(const cinterval &z) noexcept
Calculates .
cinterval exp(const cinterval &z) noexcept
Calculates .
cinterval tanh(const cinterval &z) noexcept
Calculates .
cinterval expm1(const cinterval &z) noexcept
Calculates .
cinterval cot(const cinterval &z) noexcept
Calculates .
cinterval sqrt(const cinterval &z) noexcept
Calculates .
cinterval power_fast(const cinterval &z, int n) noexcept
Calculates .
cinterval acot(const cinterval &z) noexcept
Calculates .
cinterval sqr(const cinterval &z) noexcept
Calculates .
cinterval lnp1(const cinterval &z) noexcept
Calculates .
cinterval atan(const cinterval &z) noexcept
Calculates .
cinterval atanh(const cinterval &z) noexcept
Calculates .
interval Arg(const cinterval &z) noexcept
Calculates .
cinterval acoth(const cinterval &z) noexcept
Calculates .
cinterval sin(const cinterval &z) noexcept
Calculates .