ROOT  6.06/09
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

double ExactResult ( )

Definition at line 41 of file testRootFinder.cxx.

Referenced by printStats().

int main ( )

Definition at line 160 of file testRootFinder.cxx.

double myfunc ( double  x)

Definition at line 32 of file testRootFinder.cxx.

Referenced by myfunc_p(), and runTest().

double myfunc_p ( double x,
double  
)

Definition at line 55 of file testRootFinder.cxx.

Referenced by runTest().

int printStats ( TStopwatch timer,
double  root 
)

Definition at line 57 of file testRootFinder.cxx.

Referenced by runTest().

int runTest ( int  testcase = 0)

Definition at line 72 of file testRootFinder.cxx.

Referenced by testRootFinder().

int testRootFinder ( )

Definition at line 141 of file testRootFinder.cxx.

Referenced by main().

Variable Documentation

const double ALPHA_GAMMA = 16.

Definition at line 27 of file testRootFinder.cxx.

Referenced by myfunc().

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().

int gTestCase = 0

Definition at line 30 of file testRootFinder.cxx.

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

const int iterTest = 10000

Definition at line 21 of file testRootFinder.cxx.

Referenced by printStats(), and runTest().

int myfuncCalls = 0

Definition at line 22 of file testRootFinder.cxx.

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

const double THETA_GAMMA = 0.4

Definition at line 28 of file testRootFinder.cxx.

Referenced by myfunc().

const double Y0_GAMMA = 0.32

Definition at line 26 of file testRootFinder.cxx.

Referenced by myfunc().

const double Y0_P2 = 5.0

Definition at line 24 of file testRootFinder.cxx.

Referenced by ExactResult(), and myfunc().