Go to the source code of this file.
|
nr_double_t | real (const nr_double_t) |
| Real part of real number.
|
|
nr_double_t | imag (const nr_double_t) |
| Imaginary part of complex number.
|
|
nr_double_t | norm (const nr_double_t) |
| Compute euclidian norm of real number.
|
|
nr_double_t | conj (const nr_double_t) |
| Conjugate of real number.
|
|
nr_double_t | abs (const nr_double_t) |
| Compute complex modulus of real number.
|
|
nr_double_t | limexp (const nr_double_t) |
| Compute limited exponential.
|
|
nr_double_t | signum (const nr_double_t) |
| real signum function
|
|
nr_double_t | sign (const nr_double_t) |
| real sign function
|
|
nr_double_t | xhypot (const nr_double_t, const nr_double_t) |
| Euclidean distance function.
|
|
nr_double_t | sinc (const nr_double_t) |
| Real cardinal sinus.
|
|
nr_double_t | fix (const nr_double_t) |
| Fix function.
|
|
nr_double_t | step (const nr_double_t) |
| Heaviside step function.
|
|
nr_double_t | round (const nr_double_t) |
|
nr_double_t | trunc (const nr_double_t) |
|
nr_double_t | acosh (const nr_double_t) |
|
nr_double_t | asinh (const nr_double_t) |
|
unsigned int | factorial (unsigned int) |
| Compute factorial n ie $n!$.
|
|
nr_double_t abs |
( |
const nr_double_t |
r | ) |
|
Compute complex modulus of real number.
- Parameters
-
- Returns
- Modulus of r
- Todo:
- Why not inline
Definition at line 115 of file real.cpp.
nr_double_t acosh |
( |
const nr_double_t |
| ) |
|
nr_double_t asinh |
( |
const nr_double_t |
| ) |
|
nr_double_t conj |
( |
const nr_double_t |
r | ) |
|
Conjugate of real number.
- Parameters
-
- Returns
- Conjugate of real r ie r
- Todo:
- Why not inline?
Definition at line 125 of file real.cpp.
unsigned int factorial |
( |
unsigned int |
n | ) |
|
Compute factorial n ie $n!$.
Definition at line 63 of file real.cpp.
nr_double_t fix |
( |
const nr_double_t |
d | ) |
|
Fix function.
Fix is nearest integral value in direction of 0,
- Parameters
-
- Returns
- fixed complex number
- Todo:
- Why not inline?
Definition at line 238 of file real.cpp.
nr_double_t imag |
( |
const nr_double_t |
r | ) |
|
Imaginary part of complex number.
- Parameters
-
- Returns
- Imaginary part of r
- Todo:
- Why not inline?
Definition at line 94 of file real.cpp.
nr_double_t limexp |
( |
const nr_double_t |
r | ) |
|
Compute limited exponential.
Compute limited exponential:
M_LIMEXP is a constant
- Parameters
-
- Returns
- limited exponential of r
- Todo:
Change limexp(real) limexp(complex) file order
Document M_LIMEXP
Definition at line 146 of file real.cpp.
nr_double_t norm |
( |
const nr_double_t |
r | ) |
|
Compute euclidian norm of real number.
Compute
- Parameters
-
- Returns
- Euclidian norm of r
- Todo:
- Why not inline
Definition at line 105 of file real.cpp.
nr_double_t real |
( |
const nr_double_t |
r | ) |
|
Real part of real number.
- Parameters
-
- Returns
- Real part of r ie r
- Todo:
- Why not inline?
Definition at line 84 of file real.cpp.
nr_double_t round |
( |
const nr_double_t |
| ) |
|
nr_double_t sign |
( |
const nr_double_t |
d | ) |
|
real sign function
compute
- Parameters
-
- Returns
- sign of d
- Todo:
- Move near complex sign
Definition at line 182 of file real.cpp.
nr_double_t signum |
( |
const nr_double_t |
d | ) |
|
real signum function
compute
- Parameters
-
- Returns
- signum of d
- Todo:
- Move near complex signum
Definition at line 164 of file real.cpp.
nr_double_t sinc |
( |
const nr_double_t |
d | ) |
|
Real cardinal sinus.
Compute
- Parameters
-
- Returns
- cardianal sinus of s
- Todo:
- Why not inline
Definition at line 219 of file real.cpp.
nr_double_t step |
( |
const nr_double_t |
d | ) |
|
Heaviside step function.
The Heaviside step function, H, also called unit step function, is a discontinuous function whose value is zero for negative argument and one for positive argument. For zero by convention, H(0)=0.5
- Parameters
-
- Returns
- Heaviside step
- Todo:
- Create Heaviside alias
Definition at line 251 of file real.cpp.
nr_double_t trunc |
( |
const nr_double_t |
| ) |
|
nr_double_t xhypot |
( |
const nr_double_t |
a, |
|
|
const nr_double_t |
b |
|
) |
| |
Euclidean distance function.
The xhypot() function returns . This is the length of the hypotenuse of a right-angle triangle with sides of length a and b, or the distance of the point (a,b) from the origin.
- Parameters
-
[in] | a | first length |
[in] | b | second length |
- Returns
- Euclidean distance from (0,0) to (a,b):
Definition at line 197 of file real.cpp.