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. More...
|
| |
| double | asinh (const double x) |
| |
| unsigned long | binom (const unsigned long x, unsigned long y) |
| | x!/(y!(x-y)!) More...
|
| |
| unsigned long | binomial (const unsigned long y, const unsigned long z) |
| | (y+z)!/(y!z!) More...
|
| |
| 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)!/(x!y!z!) Like for binomial, more efficient algos (or algos less prone to overflow) are possible ... More...
|
| |
| long double | fact (const double x) |
| |
| long double | ldgamma (const double x) |
| | the gamma fct More...
|
| |
| double | poisson (const double x, const double la) |
| | poisson distrib More...
|
| |
| double | chi_s (const double x, const double n) |
| | chi_square distrib More...
|
| |
| double | erfc3 (const double x, const double c, const double s) |
| | Gauss normal distribution (x, center, sigma) More...
|
| |
general purpose math definitions and functions (C)
Definition in file mathplus.h.
| #define LONG_LONG long long |
| double asinh |
( |
const double |
x | ) |
|
|
inline |
| 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(), std::fabs(), and MATH__.
| unsigned long binom |
( |
const unsigned long |
x, |
|
|
unsigned long |
y |
|
) |
| |
|
inline |
| unsigned long binomial |
( |
const unsigned long |
y, |
|
|
const unsigned long |
z |
|
) |
| |
|
inline |
| double chi_s |
( |
const double |
x, |
|
|
const double |
n |
|
) |
| |
|
inline |
| double erfc3 |
( |
const double |
x, |
|
|
const double |
c, |
|
|
const double |
s |
|
) |
| |
|
inline |
| unsigned long long fac |
( |
const unsigned char |
x | ) |
|
|
inline |
| long double fact |
( |
const double |
x | ) |
|
|
inline |
| long double ldgamma |
( |
const double |
x | ) |
|
|
inline |
| double poisson |
( |
const double |
x, |
|
|
const double |
la |
|
) |
| |
|
inline |
| 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.