My Project
0.0.16
QUCS Mapping
|
Go to the source code of this file.
Functions | |
nr_double_t | abs (const cmplx z) |
Compute complex modulus. | |
nr_double_t | arg (const cmplx z) |
Compute argument of complex number. | |
nr_double_t | real (const cmplx z) |
Real part of complex number. | |
nr_double_t | imag (const cmplx z) |
Imaginary part of complex number. | |
cmplx | conj (const cmplx z) |
Conjugate of complex number. | |
cmplx | operator+ (const cmplx z1, const cmplx z2) |
Addition of two complex. | |
cmplx | operator+ (const nr_double_t r1, const cmplx z2) |
Addition of real and complex. | |
cmplx | operator+ (const cmplx z1, const nr_double_t r2) |
Addition of complex and real. | |
cmplx | operator- (const cmplx z1, const cmplx z2) |
Substraction of two complex. | |
cmplx | operator- (const nr_double_t r1, const cmplx z2) |
Substraction of real and complex. | |
cmplx | operator- (const cmplx z1, const nr_double_t r2) |
Substraction of complex and real. | |
cmplx | operator* (const cmplx z1, const nr_double_t r2) |
Multiplication of complex and real. | |
cmplx | operator* (const nr_double_t r1, const cmplx z2) |
Multiplication of real and complex. | |
cmplx | operator* (const cmplx z1, const cmplx z2) |
Multiplication of two complex. | |
cmplx | operator/ (const cmplx z1, const nr_double_t r2) |
Divide a complex by a double. | |
cmplx | operator/ (const cmplx z1, const cmplx z2) |
Divide a complex by a complex. | |
cmplx | operator/ (const nr_double_t r1, const cmplx z2) |
Divide a real by a complex. | |
Implement complex number class and functions
Definition in file cmplx.cpp.
nr_double_t abs | ( | const cmplx | z | ) |
nr_double_t arg | ( | const cmplx | z | ) |
Compute argument of complex number.
[in] | z | Complex number |
lack of nr_double_t cmplx::arg(void)
Why not inline
Definition at line 113 of file cmplx.cpp.
nr_double_t imag | ( | const cmplx | z | ) |