herwig is hosted by Hepforge, IPPP Durham
Herwig 7.3.0
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)\).
 
double alphaS (Energy q, Energy lam, unsigned int nf, unsigned int nloop)
 The 1,2,3-loop parametrization of \(\alpha_S\).
 
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.
 

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 alphaS(), ThePEG::Constants::pi, and ThePEG::sqr().

Referenced by alphaS().

◆ angleMinusPiToPi()

double Herwig::Math::angleMinusPiToPi ( double  angle)
inline

Fold angles into the range (-Pi,Pi)

Definition at line 48 of file Maths.h.

References angleMinusPiToPi(), and angleZeroTo2Pi().

Referenced by angleMinusPiToPi().

◆ angleZeroTo2Pi()

double Herwig::Math::angleZeroTo2Pi ( double  angle)
inline

Fold angles into the range (0,2 Pi)

Definition at line 39 of file Maths.h.

References angleZeroTo2Pi().

Referenced by angleMinusPiToPi(), and angleZeroTo2Pi().

◆ 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 derivativeAlphaS(), ThePEG::Constants::pi, and ThePEG::sqr().

Referenced by derivativeAlphaS().

◆ 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 59 of file Maths.h.

References median(), and v.

Referenced by median().