Logo ROOT   6.08/07
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:

Functions

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

Variables

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

Function Documentation

◆ ExactResult()

double ExactResult ( )

Definition at line 41 of file testRootFinder.cxx.

◆ main()

int main ( )

Definition at line 160 of file testRootFinder.cxx.

◆ myfunc()

double myfunc ( double  x)

Definition at line 32 of file testRootFinder.cxx.

◆ myfunc_p()

double myfunc_p ( double *  x,
double *   
)

Definition at line 55 of file testRootFinder.cxx.

◆ printStats()

int printStats ( TStopwatch timer,
double  root 
)

Definition at line 57 of file testRootFinder.cxx.

◆ runTest()

int runTest ( int  testcase = 0)

Definition at line 72 of file testRootFinder.cxx.

◆ testRootFinder()

int testRootFinder ( )

Definition at line 141 of file testRootFinder.cxx.

Variable Documentation

◆ ALPHA_GAMMA

const double ALPHA_GAMMA = 16.

Definition at line 27 of file testRootFinder.cxx.

◆ 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.

◆ gTestCase

int gTestCase = 0

Definition at line 30 of file testRootFinder.cxx.

◆ iterTest

const int iterTest = 10000

Definition at line 21 of file testRootFinder.cxx.

◆ myfuncCalls

int myfuncCalls = 0

Definition at line 22 of file testRootFinder.cxx.

◆ THETA_GAMMA

const double THETA_GAMMA = 0.4

Definition at line 28 of file testRootFinder.cxx.

◆ Y0_GAMMA

const double Y0_GAMMA = 0.32

Definition at line 26 of file testRootFinder.cxx.

◆ Y0_P2

const double Y0_P2 = 5.0

Definition at line 24 of file testRootFinder.cxx.