ROOT  6.06/08
Reference Guide
Functions | Variables
testRootFinder.cxx File Reference
#include "TF1.h"
#include "Math/Functor.h"
#include "TStopwatch.h"
#include "RConfigure.h"
#include "Math/RootFinder.h"
#include "Math/DistFunc.h"
#include <iostream>
#include <iomanip>
#include <cmath>
+ Include dependency graph for testRootFinder.cxx:

Go to the source code of this file.

Functions

double myfunc (double x)
 
double ExactResult ()
 
double myfunc_p (double *x, double *)
 
int printStats (TStopwatch &timer, double root)
 
int runTest (int testcase=0)
 
int testRootFinder ()
 
int main ()
 

Variables

const double ERRORLIMIT = 1E-8
 Test of ROOT finder for various function. More...
 
const int iterTest = 10000
 
int myfuncCalls = 0
 
const double Y0_P2 = 5.0
 
const double Y0_GAMMA = 0.32
 
const double ALPHA_GAMMA = 16.
 
const double THETA_GAMMA = 0.4
 
int gTestCase = 0
 

Function Documentation

§ ExactResult()

double ExactResult ( )

Definition at line 41 of file testRootFinder.cxx.

Referenced by printStats().

§ main()

int main ( )

Definition at line 160 of file testRootFinder.cxx.

§ myfunc()

double myfunc ( double  x)

Definition at line 32 of file testRootFinder.cxx.

Referenced by myfunc_p(), and runTest().

§ myfunc_p()

double myfunc_p ( double *  x,
double *   
)

Definition at line 55 of file testRootFinder.cxx.

Referenced by runTest().

§ printStats()

int printStats ( TStopwatch timer,
double  root 
)

Definition at line 57 of file testRootFinder.cxx.

Referenced by runTest().

§ runTest()

int runTest ( int  testcase = 0)

Definition at line 72 of file testRootFinder.cxx.

Referenced by testRootFinder().

§ testRootFinder()

int testRootFinder ( )

Definition at line 141 of file testRootFinder.cxx.

Referenced by main().

Variable Documentation

§ ALPHA_GAMMA

const double ALPHA_GAMMA = 16.

Definition at line 27 of file testRootFinder.cxx.

Referenced by myfunc().

§ ERRORLIMIT

const double ERRORLIMIT = 1E-8

Test of ROOT finder for various function.

case = 0 simple function (polynomial) case = 1 function which fails for a bug in BrentMethod::MinimBrent fixed with r = 32544 (5.27.01)

Definition at line 20 of file testRootFinder.cxx.

Referenced by printStats().

§ gTestCase

int gTestCase = 0

Definition at line 30 of file testRootFinder.cxx.

Referenced by ExactResult(), myfunc(), and runTest().

§ iterTest

const int iterTest = 10000

Definition at line 21 of file testRootFinder.cxx.

Referenced by printStats(), and runTest().

§ myfuncCalls

int myfuncCalls = 0

Definition at line 22 of file testRootFinder.cxx.

Referenced by myfunc(), printStats(), and runTest().

§ THETA_GAMMA

const double THETA_GAMMA = 0.4

Definition at line 28 of file testRootFinder.cxx.

Referenced by myfunc().

§ Y0_GAMMA

const double Y0_GAMMA = 0.32

Definition at line 26 of file testRootFinder.cxx.

Referenced by myfunc().

§ Y0_P2

const double Y0_P2 = 5.0

Definition at line 24 of file testRootFinder.cxx.

Referenced by ExactResult(), and myfunc().