general purpose math definitions and functions (C)
More...
#include <math.h>
#include "tbci/constants.h"
Go to the source code of this file.
|
| double | bernoulli (const double x) |
| | Despite being C compliant, we do use namespace stuff, if we can.
|
| double | asinh (const double x) |
| unsigned long | binom (const unsigned long x, unsigned long y) |
| | x!
|
| unsigned long | binomial (const unsigned long y, const unsigned long z) |
| | (y+z)!
|
| unsigned long long | fac (const unsigned char x) |
| unsigned long | trinomial (const unsigned long x, const unsigned long y, const unsigned long z) |
| | (x+y+z)!
|
| long double | fact (const double x) |
| long double | ldgamma (const double x) |
| | the gamma fct
|
| double | poisson (const double x, const double la) |
| | poisson distrib
|
| double | chi_s (const double x, const double n) |
| | chi_square distrib
|
| double | erfc3 (const double x, const double c, const double s) |
| | Gauss normal distribution (x, center, sigma).
|
general purpose math definitions and functions (C)
Definition in file mathplus.h.
◆ LONG_LONG
| #define LONG_LONG long long |
◆ MATH__
◆ asinh()
| double asinh |
( |
const double | x | ) |
|
|
inline |
◆ bernoulli()
| double bernoulli |
( |
const double | x | ) |
|
|
inline |
Despite being C compliant, we do use namespace stuff, if we can.
<Bernoulli function from: Simulation of optoelectronic semiconductors, TR 310, S. 60
Definition at line 35 of file mathplus.h.
References exp(), fabs(), MATH__, and x.
◆ binom()
| unsigned long binom |
( |
const unsigned long | x, |
|
|
unsigned long | y ) |
|
inline |
◆ binomial()
| unsigned long binomial |
( |
const unsigned long | y, |
|
|
const unsigned long | z ) |
|
inline |
◆ chi_s()
| double chi_s |
( |
const double | x, |
|
|
const double | n ) |
|
inline |
◆ erfc3()
| double erfc3 |
( |
const double | x, |
|
|
const double | c, |
|
|
const double | s ) |
|
inline |
◆ fac()
| unsigned long long fac |
( |
const unsigned char | x | ) |
|
|
inline |
◆ fact()
| long double fact |
( |
const double | x | ) |
|
|
inline |
◆ ldgamma()
| long double ldgamma |
( |
const double | x | ) |
|
|
inline |
◆ poisson()
| double poisson |
( |
const double | x, |
|
|
const double | la ) |
|
inline |
◆ trinomial()
| unsigned long trinomial |
( |
const unsigned long | x, |
|
|
const unsigned long | y, |
|
|
const unsigned long | z ) |
|
inline |
(x+y+z)!
/(x!y!z!) Like for binomial, more efficient algos (or algos less prone to overflow) are possible ...
Definition at line 92 of file mathplus.h.
References fac, x, and y.