Qucs-core  0.0.18
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Namespaces | Functions
complex.cpp File Reference
#include <cmath>
#include <assert.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include "constants.h"
#include "precision.h"
#include "complex.h"
#include "consts.h"
#include "fspecial.h"
#include "cbesselj.cpp"

Go to the source code of this file.

Namespaces

 qucs
 

Functions

nr_complex_t qucs::cos (const nr_complex_t z)
 Compute complex cosine. More...
 
nr_complex_t qucs::sin (const nr_complex_t z)
 Compute complex sine. More...
 
nr_complex_t qucs::tan (const nr_complex_t z)
 Compute complex tangent. More...
 
nr_complex_t qucs::acos (const nr_complex_t z)
 Compute complex arc cosine. More...
 
nr_complex_t qucs::asin (const nr_complex_t z)
 Compute complex arc sine. More...
 
nr_complex_t qucs::atan (const nr_complex_t z)
 Compute complex arc tangent. More...
 
nr_complex_t qucs::cosh (const nr_complex_t z)
 Compute complex hyperbolic cosine. More...
 
nr_complex_t qucs::sinh (const nr_complex_t z)
 Compute complex hyperbolic sine. More...
 
nr_complex_t qucs::tanh (const nr_complex_t z)
 Compute complex hyperbolic tangent. More...
 
nr_complex_t qucs::acosh (const nr_complex_t z)
 Compute complex arc hyperbolic cosine. More...
 
nr_complex_t qucs::asinh (const nr_complex_t z)
 Compute complex arc hyperbolic sine. More...
 
nr_complex_t qucs::atanh (const nr_complex_t z)
 Compute complex arc hyperbolic tangent. More...
 
nr_complex_t qucs::exp (const nr_complex_t z)
 Compute complex exponential. More...
 
nr_complex_t qucs::log (const nr_complex_t z)
 Compute principal value of natural logarithm of z. More...
 
nr_complex_t qucs::log10 (const nr_complex_t z)
 Compute principal value of decimal logarithm of z. More...
 
nr_complex_t qucs::pow (const nr_complex_t z, const nr_double_t d)
 Compute power function with real exponent. More...
 
nr_complex_t qucs::pow (const nr_double_t d, const nr_complex_t z)
 Compute power function with complex exponent but real mantisse. More...
 
nr_complex_t qucs::pow (const nr_complex_t z1, const nr_complex_t z2)
 Compute complex power function. More...
 
nr_complex_t qucs::sqrt (const nr_complex_t z)
 Compute principal value of square root. More...
 
nr_double_t qucs::norm (const nr_complex_t z)
 Compute euclidian norm of complex number. More...
 
nr_complex_t qucs::cot (const nr_complex_t z)
 Compute complex cotangent. More...
 
nr_complex_t qucs::acot (const nr_complex_t z)
 Compute complex arc cotangent. More...
 
nr_complex_t qucs::coth (const nr_complex_t z)
 Compute complex hyperbolic cotangent. More...
 
nr_complex_t qucs::acoth (const nr_complex_t z)
 Compute complex argument hyperbolic cotangent. More...
 
nr_complex_t qucs::sech (const nr_complex_t z)
 Compute complex hyperbolic secant. More...
 
nr_complex_t qucs::asech (const nr_complex_t z)
 Compute complex argument hyperbolic secant. More...
 
nr_complex_t qucs::cosech (const nr_complex_t z)
 Compute complex argument hyperbolic cosec. More...
 
nr_complex_t qucs::atan2 (const nr_complex_t y, const nr_complex_t x)
 Compute complex arc tangent fortran like function. More...
 
nr_complex_t qucs::log2 (const nr_complex_t z)
 Compute principal value of binary logarithm of z. More...
 
nr_complex_t qucs::signum (const nr_complex_t z)
 complex signum function More...
 
nr_complex_t qucs::sign (const nr_complex_t z)
 complex sign function More...
 
nr_complex_t qucs::sinc (const nr_complex_t z)
 Cardinal sine. More...
 
nr_double_t qucs::xhypot (const nr_complex_t a, const nr_complex_t b)
 Euclidean distance function for complex argument. More...
 
nr_double_t qucs::xhypot (nr_double_t a, nr_complex_t b)
 Euclidean distance function for a double b complex. More...
 
nr_double_t qucs::xhypot (nr_complex_t a, nr_double_t b)
 Euclidean distance function for b double a complex. More...
 
nr_complex_t qucs::round (const nr_complex_t z)
 Complex round Round is the nearest integral value Apply round to real and imaginary part. More...
 
nr_complex_t qucs::trunc (const nr_complex_t z)
 Complex trunc Apply round to integer, towards zero to real and imaginary part. More...
 
nr_double_t qucs::dB (const nr_complex_t z)
 Magnitude in dB Compute $10\log_{10} |z|^2=20\log_{10} |z|$. More...
 
nr_complex_t qucs::limexp (const nr_complex_t z)
 Compute limited complex exponential. More...
 
nr_complex_t qucs::polar (const nr_double_t mag, const nr_double_t ang)
 Construct a complex number using polar notation. More...
 
nr_complex_t qucs::polar (const nr_complex_t a, const nr_complex_t p)
 Extension of polar construction to complex. More...
 
nr_complex_t qucs::ztor (const nr_complex_t z, nr_complex_t zref)
 Converts impedance to reflexion coefficient. More...
 
nr_complex_t qucs::rtoz (const nr_complex_t r, nr_complex_t zref)
 Converts reflexion coefficient to impedance. More...
 
nr_complex_t qucs::ytor (const nr_complex_t y, nr_complex_t zref)
 Converts admittance to reflexion coefficient. More...
 
nr_complex_t qucs::rtoy (const nr_complex_t r, nr_complex_t zref)
 Converts reflexion coefficient to admittance. More...
 
nr_complex_t qucs::floor (const nr_complex_t z)
 Complex floor. More...
 
nr_complex_t qucs::ceil (const nr_complex_t z)
 Complex ceil Ceil is the smallest integral value not less than argument Apply ceil to real and imaginary part. More...
 
nr_complex_t qucs::fix (const nr_complex_t z)
 Complex fix. More...
 
nr_complex_t qucs::fmod (const nr_complex_t x, const nr_complex_t y)
 Complex fmod Apply fmod to the complex z. More...
 
nr_complex_t qucs::sqr (const nr_complex_t z)
 Square of complex number. More...
 
nr_complex_t qucs::step (const nr_complex_t z)
 Heaviside step function for complex number. More...
 
nr_complex_t qucs::cbesselj (unsigned int n, nr_complex_t z)
 Main entry point for besselj function. More...
 
static nr_complex_t qucs::cbesselj_smallarg (unsigned int n, nr_complex_t z)
 
static nr_complex_t qucs::cbesselj_mediumarg_odd (unsigned int n, nr_complex_t z)
 
static nr_complex_t qucs::cbesselj_mediumarg_even (unsigned int n, nr_complex_t z)
 
static nr_complex_t qucs::cbesselj_mediumarg (unsigned int n, nr_complex_t z)
 
static nr_complex_t qucs::cbesselj_largearg (unsigned int n, nr_complex_t z)
 besselj for large argument More...
 
nr_complex_t qucs::jn (const int n, const nr_complex_t z)
 Bessel function of first kind. More...
 
nr_complex_t qucs::yn (const int n, const nr_complex_t z)
 Bessel function of second kind. More...
 
nr_complex_t qucs::i0 (const nr_complex_t z)
 Modified Bessel function of first kind. More...
 
nr_complex_t qucs::erf (const nr_complex_t z)
 Error function. More...
 
nr_complex_t qucs::erfc (const nr_complex_t z)
 Complementart error function. More...
 
nr_complex_t qucs::erfinv (const nr_complex_t z)
 Inverse of error function. More...
 
nr_complex_t qucs::erfcinv (const nr_complex_t z)
 Inverse of complementart error function. More...
 
nr_complex_t qucs::operator% (const nr_complex_t z1, const nr_complex_t z2)
 Modulo. More...
 
nr_complex_t qucs::operator% (const nr_complex_t z1, const nr_double_t r2)
 Modulo. More...
 
nr_complex_t qucs::operator% (const nr_double_t r1, const nr_complex_t z2)
 Modulo. More...
 
bool qucs::operator== (const nr_complex_t z1, const nr_complex_t z2)
 Equality of two complex. More...
 
bool qucs::operator!= (const nr_complex_t z1, const nr_complex_t z2)
 Inequality of two complex. More...
 
bool qucs::operator>= (const nr_complex_t z1, const nr_complex_t z2)
 Superior of equal. More...
 
bool qucs::operator<= (const nr_complex_t z1, const nr_complex_t z2)
 Inferior of equal. More...
 
bool qucs::operator> (const nr_complex_t z1, const nr_complex_t z2)
 Superior. More...
 
bool qucs::operator< (const nr_complex_t z1, const nr_complex_t z2)
 Inferior. More...
 

Detailed Description

Implements complex number class and functions

Definition in file complex.cpp.