Complex Number 0.1.2 |
Elementary complex mathematical functions. More...
#include "ComplexNumber.h"
#include "ComplexMath.h"
#include "MathExceptions.h"
#include "Namespace.h"
#include <cmath>
#include <vector>
Go to the source code of this file.
Namespaces | |
namespace | math |
Math namespace. | |
namespace | complex |
Complex namespace. | |
Defines | |
#define | COMPLEX_MATH_CPP |
Functions | |
template<class T > | |
T | abs (const ComplexNumber< T > &z) |
template<class T > | |
T | abs2 (const ComplexNumber< T > &z) |
template<class T > | |
T | arg (const ComplexNumber< T > &z) |
template<class T > | |
T | logabs (const ComplexNumber< T > &z) |
template<class T > | |
ComplexNumber< T > | conjugate (const ComplexNumber< T > &z) |
template<class T > | |
ComplexNumber< T > | exp (const ComplexNumber< T > &z) |
template<class T > | |
ComplexNumber< T > | inverse (const ComplexNumber< T > &z) |
template<class T > | |
ComplexNumber< T > | log (const ComplexNumber< T > &z) |
template<class T > | |
ComplexNumber< T > | log (const T &x) |
template<class T > | |
ComplexNumber< T > | log10 (const ComplexNumber< T > &z) |
template<class T > | |
ComplexNumber< T > | log10 (const T &x) |
template<class T > | |
ComplexNumber< T > | logb (const ComplexNumber< T > &z, const ComplexNumber< T > &b) |
template<class T > | |
ComplexNumber< T > | logb (const ComplexNumber< T > &z, const T &b) |
template<class T > | |
ComplexNumber< T > | logb (const T &x, const ComplexNumber< T > &b) |
template<class T > | |
ComplexNumber< T > | logb (const T &x, const T &b) |
template<class T > | |
ComplexNumber< T > | pow (const ComplexNumber< T > &a, const ComplexNumber< T > &b) |
template<class T > | |
ComplexNumber< T > | pow (const ComplexNumber< T > &a, const T &b) |
template<class T > | |
ComplexNumber< T > | pow (const T &a, const ComplexNumber< T > &b) |
template<class T > | |
ComplexNumber< T > | sqrt (const ComplexNumber< T > &z) |
template<class T > | |
ComplexNumber< T > | sqrt (const T &x) |
template<class T > | |
ComplexNumber< T > | cbrt (const ComplexNumber< T > &z) |
template<class T > | |
ComplexNumber< T > | nthRoot (const ComplexNumber< T > &z, const int n) |
template<class T > | |
std::vector< ComplexNumber< T > > | nthRoots (const ComplexNumber< T > &z, const int n) |
template<class T > | |
void | nthRoots (const ComplexNumber< T > &z, std::vector< ComplexNumber< T > > &roots, const int n) |
template<class T > | |
ComplexNumber< T > | sin (const ComplexNumber< T > &z) |
template<class T > | |
ComplexNumber< T > | cos (const ComplexNumber< T > &z) |
template<class T > | |
ComplexNumber< T > | tan (const ComplexNumber< T > &z) |
template<class T > | |
ComplexNumber< T > | csc (const ComplexNumber< T > &z) |
template<class T > | |
ComplexNumber< T > | sec (const ComplexNumber< T > &z) |
template<class T > | |
ComplexNumber< T > | cot (const ComplexNumber< T > &z) |
template<class T > | |
ComplexNumber< T > | asin (const ComplexNumber< T > &z) |
template<class T > | |
ComplexNumber< T > | asin (const T &x) |
template<class T > | |
ComplexNumber< T > | acos (const ComplexNumber< T > &z) |
template<class T > | |
ComplexNumber< T > | acos (const T &x) |
template<class T > | |
ComplexNumber< T > | atan (const ComplexNumber< T > &z) |
template<class T > | |
ComplexNumber< T > | atan (const T &x) |
template<class T > | |
ComplexNumber< T > | acsc (const ComplexNumber< T > &z) |
template<class T > | |
ComplexNumber< T > | acsc (const T &x) |
template<class T > | |
ComplexNumber< T > | asec (const ComplexNumber< T > &z) |
template<class T > | |
ComplexNumber< T > | asec (const T &x) |
template<class T > | |
ComplexNumber< T > | acot (const ComplexNumber< T > &z) |
template<class T > | |
ComplexNumber< T > | acot (const T &x) |
template<class T > | |
ComplexNumber< T > | sinh (const ComplexNumber< T > &z) |
template<class T > | |
ComplexNumber< T > | cosh (const ComplexNumber< T > &z) |
template<class T > | |
ComplexNumber< T > | tanh (const ComplexNumber< T > &z) |
template<class T > | |
ComplexNumber< T > | csch (const ComplexNumber< T > &z) |
template<class T > | |
ComplexNumber< T > | sech (const ComplexNumber< T > &z) |
template<class T > | |
ComplexNumber< T > | coth (const ComplexNumber< T > &z) |
template<class T > | |
ComplexNumber< T > | asinh (const ComplexNumber< T > &z) |
template<class T > | |
ComplexNumber< T > | asinh (const T &x) |
template<class T > | |
ComplexNumber< T > | acosh (const ComplexNumber< T > &z) |
template<class T > | |
ComplexNumber< T > | acosh (const T &x) |
template<class T > | |
ComplexNumber< T > | atanh (const ComplexNumber< T > &z) |
template<class T > | |
ComplexNumber< T > | atanh (const T &x) |
template<class T > | |
ComplexNumber< T > | acsch (const ComplexNumber< T > &z) |
template<class T > | |
ComplexNumber< T > | acsch (const T &x) |
template<class T > | |
ComplexNumber< T > | asech (const ComplexNumber< T > &z) |
template<class T > | |
ComplexNumber< T > | asech (const T &x) |
template<class T > | |
ComplexNumber< T > | acoth (const ComplexNumber< T > &z) |
template<class T > | |
ComplexNumber< T > | acoth (const T &x) |
Elementary complex mathematical functions.
This file contains the implementations for elementary complex mathematical functions
Definition in file ComplexMath.cpp.
#define COMPLEX_MATH_CPP |
Definition at line 25 of file ComplexMath.cpp.
T abs | ( | const ComplexNumber< T > & | z | ) | [related] |
Definition at line 73 of file ComplexMath.cpp.
T abs2 | ( | const ComplexNumber< T > & | z | ) | [related] |
Definition at line 80 of file ComplexMath.cpp.
ComplexNumber<T> acos | ( | const ComplexNumber< T > & | z | ) | [related] |
Definition at line 361 of file ComplexMath.cpp.
ComplexNumber<T> acos | ( | const T & | x | ) | [related] |
Definition at line 371 of file ComplexMath.cpp.
ComplexNumber<T> acosh | ( | const ComplexNumber< T > & | z | ) | [related] |
Definition at line 497 of file ComplexMath.cpp.
ComplexNumber<T> acosh | ( | const T & | x | ) | [related] |
Definition at line 507 of file ComplexMath.cpp.
ComplexNumber<T> acot | ( | const ComplexNumber< T > & | z | ) | [related] |
Definition at line 426 of file ComplexMath.cpp.
ComplexNumber<T> acot | ( | const T & | x | ) | [related] |
Definition at line 432 of file ComplexMath.cpp.
ComplexNumber<T> acoth | ( | const ComplexNumber< T > & | z | ) | [related] |
Definition at line 569 of file ComplexMath.cpp.
ComplexNumber<T> acoth | ( | const T & | x | ) | [related] |
Definition at line 575 of file ComplexMath.cpp.
ComplexNumber<T> acsc | ( | const ComplexNumber< T > & | z | ) | [related] |
Definition at line 402 of file ComplexMath.cpp.
ComplexNumber<T> acsc | ( | const T & | x | ) | [related] |
Definition at line 408 of file ComplexMath.cpp.
ComplexNumber<T> acsch | ( | const ComplexNumber< T > & | z | ) | [related] |
Definition at line 541 of file ComplexMath.cpp.
ComplexNumber<T> acsch | ( | const T & | x | ) | [related] |
Definition at line 547 of file ComplexMath.cpp.
T arg | ( | const ComplexNumber< T > & | z | ) | [related] |
Definition at line 87 of file ComplexMath.cpp.
ComplexNumber<T> asec | ( | const ComplexNumber< T > & | z | ) | [related] |
Definition at line 414 of file ComplexMath.cpp.
ComplexNumber<T> asec | ( | const T & | x | ) | [related] |
Definition at line 420 of file ComplexMath.cpp.
ComplexNumber<T> asech | ( | const ComplexNumber< T > & | z | ) | [related] |
Definition at line 553 of file ComplexMath.cpp.
ComplexNumber<T> asech | ( | const T & | x | ) | [related] |
Definition at line 559 of file ComplexMath.cpp.
ComplexNumber<T> asin | ( | const ComplexNumber< T > & | z | ) | [related] |
Definition at line 336 of file ComplexMath.cpp.
ComplexNumber<T> asin | ( | const T & | x | ) | [related] |
Definition at line 347 of file ComplexMath.cpp.
ComplexNumber<T> asinh | ( | const ComplexNumber< T > & | z | ) | [related] |
Definition at line 481 of file ComplexMath.cpp.
ComplexNumber<T> asinh | ( | const T & | x | ) | [related] |
Definition at line 491 of file ComplexMath.cpp.
ComplexNumber<T> atan | ( | const ComplexNumber< T > & | z | ) | [related] |
Definition at line 385 of file ComplexMath.cpp.
ComplexNumber<T> atan | ( | const T & | x | ) | [related] |
Definition at line 396 of file ComplexMath.cpp.
ComplexNumber<T> atanh | ( | const ComplexNumber< T > & | z | ) | [related] |
Definition at line 521 of file ComplexMath.cpp.
ComplexNumber<T> atanh | ( | const T & | x | ) | [related] |
Definition at line 531 of file ComplexMath.cpp.
ComplexNumber<T> cbrt | ( | const ComplexNumber< T > & | z | ) | [related] |
Definition at line 242 of file ComplexMath.cpp.
ComplexNumber<T> conjugate | ( | const ComplexNumber< T > & | z | ) | [related] |
Definition at line 105 of file ComplexMath.cpp.
ComplexNumber<T> cos | ( | const ComplexNumber< T > & | z | ) | [related] |
Definition at line 300 of file ComplexMath.cpp.
ComplexNumber<T> cosh | ( | const ComplexNumber< T > & | z | ) | [related] |
Definition at line 445 of file ComplexMath.cpp.
ComplexNumber<T> cot | ( | const ComplexNumber< T > & | z | ) | [related] |
Definition at line 330 of file ComplexMath.cpp.
ComplexNumber<T> coth | ( | const ComplexNumber< T > & | z | ) | [related] |
Definition at line 475 of file ComplexMath.cpp.
ComplexNumber<T> csc | ( | const ComplexNumber< T > & | z | ) | [related] |
Definition at line 318 of file ComplexMath.cpp.
ComplexNumber<T> csch | ( | const ComplexNumber< T > & | z | ) | [related] |
Definition at line 463 of file ComplexMath.cpp.
ComplexNumber<T> exp | ( | const ComplexNumber< T > & | z | ) | [related] |
Definition at line 111 of file ComplexMath.cpp.
ComplexNumber<T> inverse | ( | const ComplexNumber< T > & | z | ) | [related] |
Definition at line 118 of file ComplexMath.cpp.
ComplexNumber<T> log | ( | const ComplexNumber< T > & | z | ) | [related] |
Definition at line 128 of file ComplexMath.cpp.
ComplexNumber<T> log | ( | const T & | x | ) | [related] |
Definition at line 137 of file ComplexMath.cpp.
ComplexNumber<T> log10 | ( | const ComplexNumber< T > & | z | ) | [related] |
Definition at line 146 of file ComplexMath.cpp.
ComplexNumber<T> log10 | ( | const T & | x | ) | [related] |
Definition at line 152 of file ComplexMath.cpp.
T logabs | ( | const ComplexNumber< T > & | z | ) | [related] |
Definition at line 96 of file ComplexMath.cpp.
ComplexNumber<T> logb | ( | const ComplexNumber< T > & | z, |
const ComplexNumber< T > & | b | ||
) | [related] |
Definition at line 162 of file ComplexMath.cpp.
ComplexNumber<T> logb | ( | const ComplexNumber< T > & | z, |
const T & | b | ||
) | [related] |
Definition at line 168 of file ComplexMath.cpp.
ComplexNumber<T> logb | ( | const T & | x, |
const ComplexNumber< T > & | b | ||
) | [related] |
Definition at line 174 of file ComplexMath.cpp.
ComplexNumber<T> logb | ( | const T & | x, |
const T & | b | ||
) | [related] |
Definition at line 180 of file ComplexMath.cpp.
ComplexNumber<T> nthRoot | ( | const ComplexNumber< T > & | z, |
const int | n | ||
) | [related] |
Definition at line 253 of file ComplexMath.cpp.
std::vector<ComplexNumber<T> > nthRoots | ( | const ComplexNumber< T > & | z, |
const int | n | ||
) | [related] |
Definition at line 267 of file ComplexMath.cpp.
void nthRoots | ( | const ComplexNumber< T > & | z, |
std::vector< ComplexNumber< T > > & | roots, | ||
const int | n | ||
) |
Definition at line 275 of file ComplexMath.cpp.
ComplexNumber<T> pow | ( | const ComplexNumber< T > & | a, |
const ComplexNumber< T > & | b | ||
) | [related] |
Definition at line 186 of file ComplexMath.cpp.
ComplexNumber<T> pow | ( | const ComplexNumber< T > & | a, |
const T & | b | ||
) | [related] |
Definition at line 199 of file ComplexMath.cpp.
ComplexNumber<T> pow | ( | const T & | a, |
const ComplexNumber< T > & | b | ||
) | [related] |
Definition at line 208 of file ComplexMath.cpp.
ComplexNumber<T> sec | ( | const ComplexNumber< T > & | z | ) | [related] |
Definition at line 324 of file ComplexMath.cpp.
ComplexNumber<T> sech | ( | const ComplexNumber< T > & | z | ) | [related] |
Definition at line 469 of file ComplexMath.cpp.
ComplexNumber<T> sin | ( | const ComplexNumber< T > & | z | ) | [related] |
Definition at line 293 of file ComplexMath.cpp.
ComplexNumber<T> sinh | ( | const ComplexNumber< T > & | z | ) | [related] |
Definition at line 438 of file ComplexMath.cpp.
ComplexNumber<T> sqrt | ( | const ComplexNumber< T > & | z | ) | [related] |
Definition at line 221 of file ComplexMath.cpp.
ComplexNumber<T> sqrt | ( | const T & | x | ) | [related] |
Definition at line 232 of file ComplexMath.cpp.
ComplexNumber<T> tan | ( | const ComplexNumber< T > & | z | ) | [related] |
Definition at line 307 of file ComplexMath.cpp.
ComplexNumber<T> tanh | ( | const ComplexNumber< T > & | z | ) | [related] |
Definition at line 452 of file ComplexMath.cpp.