Geant4  9.6.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions | Variables
G4INCL::Math Namespace Reference

Functions

G4double toDegrees (G4double radians)
 
G4int heaviside (G4int n)
 
G4double pow13 (G4double x)
 
G4double powMinus13 (G4double x)
 
G4double pow23 (G4double x)
 
template<typename T >
G4int sign (T t)
 

Variables

const G4double pi = 3.14159265358979323846264338328
 
const G4double twoPi = 2.0 * pi
 
const G4double tenPi = 10.0 * pi
 
const G4double piOverTwo = 0.5 * pi
 
const G4double oneOverSqrtThree = 1./std::sqrt((G4double)3.)
 
const G4double oneThird = 1./3.
 
const G4double twoThirds = 2./3.
 
const G4double sqrtFiveThirds = std::sqrt(5./3.)
 
const G4double sqrtThreeFifths = std::sqrt(3./5.)
 

Function Documentation

G4int G4INCL::Math::heaviside ( G4int  n)
inline

Definition at line 82 of file G4INCLGlobals.hh.

Here is the caller graph for this function:

G4double G4INCL::Math::pow13 ( G4double  x)
inline

Definition at line 87 of file G4INCLGlobals.hh.

Here is the caller graph for this function:

G4double G4INCL::Math::pow23 ( G4double  x)
inline

Definition at line 95 of file G4INCLGlobals.hh.

Here is the caller graph for this function:

G4double G4INCL::Math::powMinus13 ( G4double  x)
inline

Definition at line 91 of file G4INCLGlobals.hh.

template<typename T >
G4int G4INCL::Math::sign ( t)
inline

A simple sign function that allows us to port fortran code to c++ more easily.

Definition at line 102 of file G4INCLGlobals.hh.

Here is the caller graph for this function:

G4double G4INCL::Math::toDegrees ( G4double  radians)
inline

Definition at line 78 of file G4INCLGlobals.hh.

Here is the caller graph for this function:

Variable Documentation

const G4double G4INCL::Math::oneOverSqrtThree = 1./std::sqrt((G4double)3.)

Definition at line 72 of file G4INCLGlobals.hh.

const G4double G4INCL::Math::oneThird = 1./3.

Definition at line 73 of file G4INCLGlobals.hh.

const G4double G4INCL::Math::pi = 3.14159265358979323846264338328

Definition at line 68 of file G4INCLGlobals.hh.

const G4double G4INCL::Math::piOverTwo = 0.5 * pi

Definition at line 71 of file G4INCLGlobals.hh.

const G4double G4INCL::Math::sqrtFiveThirds = std::sqrt(5./3.)

Definition at line 75 of file G4INCLGlobals.hh.

const G4double G4INCL::Math::sqrtThreeFifths = std::sqrt(3./5.)

Definition at line 76 of file G4INCLGlobals.hh.

const G4double G4INCL::Math::tenPi = 10.0 * pi

Definition at line 70 of file G4INCLGlobals.hh.

const G4double G4INCL::Math::twoPi = 2.0 * pi

Definition at line 69 of file G4INCLGlobals.hh.

const G4double G4INCL::Math::twoThirds = 2./3.

Definition at line 74 of file G4INCLGlobals.hh.