37 #ifndef ALGO_BLAST_CORE__NCBIMATH
38 #define ALGO_BLAST_CORE__NCBIMATH
104 void* fargs,
double p,
double q,
105 double eps,
Int4 epsit,
Int4 itmin);
152 #define LOGDERIV_ORDER_MAX 4
155 #define POLYGAMMA_ORDER_MAX LOGDERIV_ORDER_MAX
158 #define NCBIMATH_PI 3.1415926535897932384626433832795
161 #define NCBIMATH_LN2 0.69314718055994530941723212145818
163 #define NCBIMATH_LNPI 1.1447298858494001741434273513531
Defines to provide correct exporting from BLAST DLL in Windows.
#define NCBI_XBLAST_EXPORT
NULL operations for other cases.
int32_t Int4
4-byte (32-bit) signed integer
double BLAST_Log1p(double x)
Natural logarithm with shifted input.
double BLAST_Erf(double x)
The error function of x: the integral from 0 to x of e(-t*t) dt, scaled by 2/sqrt(pi) to fall within ...
Int4 BLAST_Gdb3(Int4 *a, Int4 *b, Int4 *c)
Divide 3 numbers by their greatest common divisor.
long BLAST_Nint(double x)
Nearest integer.
double BLAST_ErfC(double x)
The complementary error function of x: 1 - erf(x), but calculated more accurately for large x (where ...
double BLAST_Powi(double x, Int4 n)
Integral power of x.
double BLAST_Expm1(double x)
Exponentional with base e.
double BLAST_LnFactorial(double x)
Logarithm of the factorial.
double BLAST_RombergIntegrate(double(*f)(double, void *), void *fargs, double p, double q, double eps, Int4 epsit, Int4 itmin)
Romberg numerical integrator.
double BLAST_Factorial(Int4 n)
Factorial function.
Int4 BLAST_Gcd(Int4 a, Int4 b)
Greatest common divisor.
double BLAST_LnGammaInt(Int4 n)
log(gamma(n)), integral n
Type and macro definitions from C toolkit that are not defined in C++ toolkit.
double f(double x_, const double &y_)