Complex Number  0.1.2
include/ComplexMath.h File Reference

Elementary complex mathematical functions. More...

#include "ComplexNumber.h"
#include "Namespace.h"
#include <vector>

Go to the source code of this file.

Namespaces

namespace  math
 

Math namespace.


namespace  complex
 

Complex namespace.


Defines

#define M_El   2.7182818284590452353602874713526625L
 long double $ e $
#define M_LOG2El   1.4426950408889634073599246810018921L
 long double $ \log_{2} e $
#define M_LOG10El   0.4342944819032518276511289189166051L
 long double $ \log_{10} e $
#define M_LN2l   0.6931471805599453094172321214581766L
 long double $ \ln 2 $
#define M_LN10l   2.3025850929940456840179914546843642L
 long double $ \ln 10 $
#define M_PIl   3.1415926535897932384626433832795029L
 long double $ \pi $
#define M_PI_2l   1.5707963267948966192313216916397514L
 long double $ \frac{\pi}{2} $
#define M_PI_4l   0.7853981633974483096156608458198757L
 long double $ \frac{\pi}{4} $
#define M_1_PIl   0.3183098861837906715377675267450287L
 long double $ \frac{1}{\pi} $
#define M_2_PIl   0.6366197723675813430755350534900574L
 long double $ \frac{2}{\pi} $
#define M_2_SQRTPIl   1.1283791670955125738961589031215452L
 long double $ \frac{1}{\sqrt{\pi}} $
#define M_SQRT2l   1.4142135623730950488016887242096981L
 long double $ \sqrt{2} $
#define M_SQRT1_2l   0.7071067811865475244008443621048490L
 long double $ \frac{1}{\sqrt{2}} $

Detailed Description

Elementary complex mathematical functions.

Author:
Matthew Krupcale
Version:
0.1.2
Date:
2010

This file contains the definitions or function prototypes for elementary complex mathematical functions. It also contains several mathematical constants that are used internally

Definition in file ComplexMath.h.


Define Documentation

#define M_1_PIl   0.3183098861837906715377675267450287L

long double $ \frac{1}{\pi} $

Constant in long-double format using 128-bit IEEE quad.

$ \frac{1}{\pi} $

Definition at line 162 of file ComplexMath.h.

#define M_2_PIl   0.6366197723675813430755350534900574L

long double $ \frac{2}{\pi} $

Constant in long-double format using 128-bit IEEE quad.

$ \frac{2}{\pi} $

Definition at line 174 of file ComplexMath.h.

#define M_2_SQRTPIl   1.1283791670955125738961589031215452L

long double $ \frac{1}{\sqrt{\pi}} $

Constant in long-double format using 128-bit IEEE quad.

$ \frac{1}{\sqrt{\pi}} $

Definition at line 186 of file ComplexMath.h.

#define M_El   2.7182818284590452353602874713526625L

long double $ e $

Constant in long-double format using 128-bit IEEE quad.

Euler's number, e, which can be represented in several ways, one of which follows,

\[ e=\lim_{n \to \infty} \left(1 + \frac{1}{n}\right)^{n} \]

Definition at line 61 of file ComplexMath.h.

#define M_LN10l   2.3025850929940456840179914546843642L

long double $ \ln 10 $

Constant in long-double format using 128-bit IEEE quad.

Natural logarithm of 10

Definition at line 109 of file ComplexMath.h.

#define M_LN2l   0.6931471805599453094172321214581766L

long double $ \ln 2 $

Constant in long-double format using 128-bit IEEE quad.

Natural logarithm of 2

Definition at line 97 of file ComplexMath.h.

#define M_LOG10El   0.4342944819032518276511289189166051L

long double $ \log_{10} e $

Constant in long-double format using 128-bit IEEE quad.

Logarithm base 10 of e

Definition at line 85 of file ComplexMath.h.

#define M_LOG2El   1.4426950408889634073599246810018921L

long double $ \log_{2} e $

Constant in long-double format using 128-bit IEEE quad.

Logarithm base 2 of e

Definition at line 73 of file ComplexMath.h.

#define M_PI_2l   1.5707963267948966192313216916397514L

long double $ \frac{\pi}{2} $

Constant in long-double format using 128-bit IEEE quad.

$ \frac{\pi}{2} $

Definition at line 138 of file ComplexMath.h.

#define M_PI_4l   0.7853981633974483096156608458198757L

long double $ \frac{\pi}{4} $

Constant in long-double format using 128-bit IEEE quad.

$ \frac{\pi}{4} $

Definition at line 150 of file ComplexMath.h.

#define M_PIl   3.1415926535897932384626433832795029L

long double $ \pi $

Constant in long-double format using 128-bit IEEE quad.

$ \pi $, which is defined as the ratio of a circle's circumference to its diameter,

\[ \pi = \frac{C}{d} \]

Definition at line 126 of file ComplexMath.h.

#define M_SQRT1_2l   0.7071067811865475244008443621048490L

long double $ \frac{1}{\sqrt{2}} $

Constant in long-double format using 128-bit IEEE quad.

$ \frac{1}{\sqrt{2}} $

Definition at line 210 of file ComplexMath.h.

#define M_SQRT2l   1.4142135623730950488016887242096981L

long double $ \sqrt{2} $

Constant in long-double format using 128-bit IEEE quad.

$ \sqrt{2} $

Definition at line 198 of file ComplexMath.h.