Geant4-11
Namespaces | Functions
setStdMath.cc File Reference
#include "CLHEP/Evaluator/Evaluator.h"
#include <cmath>

Go to the source code of this file.

Namespaces

namespace  HepTool
 

Functions

static double eval_abs (double a)
 
static double eval_acos (double a)
 
static double eval_asin (double a)
 
static double eval_atan (double a)
 
static double eval_atan2 (double a, double b)
 
static double eval_cos (double a)
 
static double eval_cosh (double a)
 
static double eval_exp (double a)
 
static double eval_log (double a)
 
static double eval_log10 (double a)
 
static double eval_max (double a, double b)
 
static double eval_min (double a, double b)
 
static double eval_pow (double a, double b)
 
static double eval_sin (double a)
 
static double eval_sinh (double a)
 
static double eval_sqrt (double a)
 
static double eval_tan (double a)
 
static double eval_tanh (double a)
 

Function Documentation

◆ eval_abs()

static double eval_abs ( double  a)
static

Definition at line 8 of file setStdMath.cc.

8{ return (a < 0) ? -a : a; }

Referenced by HepTool::Evaluator::setStdMath().

◆ eval_acos()

static double eval_acos ( double  a)
static

Definition at line 17 of file setStdMath.cc.

17{ return std::acos(a); }

Referenced by HepTool::Evaluator::setStdMath().

◆ eval_asin()

static double eval_asin ( double  a)
static

Definition at line 16 of file setStdMath.cc.

16{ return std::asin(a); }

Referenced by HepTool::Evaluator::setStdMath().

◆ eval_atan()

static double eval_atan ( double  a)
static

Definition at line 18 of file setStdMath.cc.

18{ return std::atan(a); }

Referenced by HepTool::Evaluator::setStdMath().

◆ eval_atan2()

static double eval_atan2 ( double  a,
double  b 
)
static

Definition at line 19 of file setStdMath.cc.

19{ return std::atan2(a,b); }

Referenced by HepTool::Evaluator::setStdMath().

◆ eval_cos()

static double eval_cos ( double  a)
static

Definition at line 14 of file setStdMath.cc.

14{ return std::cos(a); }

Referenced by HepTool::Evaluator::setStdMath().

◆ eval_cosh()

static double eval_cosh ( double  a)
static

Definition at line 21 of file setStdMath.cc.

21{ return std::cosh(a); }

Referenced by HepTool::Evaluator::setStdMath().

◆ eval_exp()

static double eval_exp ( double  a)
static

Definition at line 23 of file setStdMath.cc.

23{ return std::exp(a); }

Referenced by HepTool::Evaluator::setStdMath().

◆ eval_log()

static double eval_log ( double  a)
static

Definition at line 24 of file setStdMath.cc.

24{ return std::log(a); }

Referenced by HepTool::Evaluator::setStdMath().

◆ eval_log10()

static double eval_log10 ( double  a)
static

Definition at line 25 of file setStdMath.cc.

25{ return std::log10(a); }

Referenced by HepTool::Evaluator::setStdMath().

◆ eval_max()

static double eval_max ( double  a,
double  b 
)
static

Definition at line 10 of file setStdMath.cc.

10{ return (a > b) ? a : b; }

Referenced by HepTool::Evaluator::setStdMath().

◆ eval_min()

static double eval_min ( double  a,
double  b 
)
static

Definition at line 9 of file setStdMath.cc.

9{ return (a < b) ? a : b; }

Referenced by HepTool::Evaluator::setStdMath().

◆ eval_pow()

static double eval_pow ( double  a,
double  b 
)
static

Definition at line 12 of file setStdMath.cc.

12{ return std::pow(a,b); }

Referenced by HepTool::Evaluator::setStdMath().

◆ eval_sin()

static double eval_sin ( double  a)
static

Definition at line 13 of file setStdMath.cc.

13{ return std::sin(a); }

Referenced by HepTool::Evaluator::setStdMath().

◆ eval_sinh()

static double eval_sinh ( double  a)
static

Definition at line 20 of file setStdMath.cc.

20{ return std::sinh(a); }

Referenced by HepTool::Evaluator::setStdMath().

◆ eval_sqrt()

static double eval_sqrt ( double  a)
static

Definition at line 11 of file setStdMath.cc.

11{ return std::sqrt(a); }

Referenced by HepTool::Evaluator::setStdMath().

◆ eval_tan()

static double eval_tan ( double  a)
static

Definition at line 15 of file setStdMath.cc.

15{ return std::tan(a); }

Referenced by HepTool::Evaluator::setStdMath().

◆ eval_tanh()

static double eval_tanh ( double  a)
static

Definition at line 22 of file setStdMath.cc.

22{ return std::tanh(a); }

Referenced by HepTool::Evaluator::setStdMath().