herwig is hosted by Hepforge, IPPP Durham
Herwig  7.2.1
Herwig::Math Namespace Reference

The Math namespace includes the declaration of some useful mathematical functions. More...

Functions

double derivativeAlphaS (Energy q, Energy lam, unsigned int nf, unsigned int nloop)
 The derivative of $\alpha_S$ with respect to $\ln(Q^2/\Lambda^2)$. More...
 
double alphaS (Energy q, Energy lam, unsigned int nf, unsigned int nloop)
 The 1,2,3-loop parametrization of $\alpha_S$. More...
 
Complex Li2 (Complex)
 The dilog function taken from FORTRAN Herwig.
 
long double ReLi2 (long double)
 The real part of the dilog function taken from FORTRAN Herwig.
 
double angleZeroTo2Pi (double angle)
 Fold angles into the range (0,2 Pi)
 
double angleMinusPiToPi (double angle)
 Fold angles into the range (-Pi,Pi)
 
template<typename T >
median (std::vector< T > v)
 Calculates the (lower) median of a vector of T objects. More...
 

Detailed Description

The Math namespace includes the declaration of some useful mathematical functions.

Function Documentation

◆ alphaS()

double Herwig::Math::alphaS ( Energy  q,
Energy  lam,
unsigned int  nf,
unsigned int  nloop 
)
inline

The 1,2,3-loop parametrization of $\alpha_S$.

Parameters
qThe scale
lam$\Lambda_{\rm QCD}$
nfThe number of flavours

Definition at line 46 of file AlphaS.h.

References ThePEG::Constants::pi, and sqr().

◆ derivativeAlphaS()

double Herwig::Math::derivativeAlphaS ( Energy  q,
Energy  lam,
unsigned int  nf,
unsigned int  nloop 
)
inline

The derivative of $\alpha_S$ with respect to $\ln(Q^2/\Lambda^2)$.

Parameters
qThe scale
lam$\Lambda_{\rm QCD}$
nfThe number of flavours

Definition at line 22 of file AlphaS.h.

References ThePEG::Constants::pi, and sqr().

◆ median()

template<typename T >
T Herwig::Math::median ( std::vector< T >  v)
inline

Calculates the (lower) median of a vector of T objects.

T has to be comparable, i.e. T::operator< must be defined.

Definition at line 58 of file Maths.h.