Chemical Data Processing Library C++ API - Version 1.2.0
Namespaces | Functions
SpecialFunctions.hpp File Reference

Provides miscellaneous special mathematical functions. More...

#include <cstddef>
#include <cmath>
#include <limits>
#include "CDPL/Math/TypeTraits.hpp"

Go to the source code of this file.

Namespaces

 CDPL
 The namespace of the Chemical Data Processing Library.
 
 CDPL::Math
 Contains classes and functions related to mathematics.
 

Functions

template<typename T >
CDPL::Math::factorial (unsigned int n)
 Computes the factorial \( n! \) of the non-negative integer n. More...
 
template<typename T >
CDPL::Math::pythag (const T &a, const T &b)
 Computes \( \sqrt{a^2 + b^2} \) without destructive underflow or overflow. More...
 
template<typename T1 , typename T2 >
T1 CDPL::Math::sign (const T1 &a, const T2 &b)
 Returns the magnitude of parameter a times the sign of parameter b. More...
 
template<typename T >
CDPL::Math::lnGamma (const T &z)
 Computes \( \ln[\Gamma(z)] \) for \( z > 0 \). More...
 
template<typename T >
CDPL::Math::gammaQ (const T &a, const T &x)
 Computes the incomplete gamma function \( Q(a, x) = 1 - P(a, x) \) (see [NRIC] for details). More...
 
template<typename T >
CDPL::Math::generalizedBell (const T &x, const T &a, const T &b, const T &c)
 Computes the generalized bell function \( Bell(x) = \frac{1}{1 + |\frac{x-c}{a}|^{2b}} \) at x. More...
 

Detailed Description

Provides miscellaneous special mathematical functions.