![]() |
ROOT 6.08/07 Reference Guide |
#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>
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 |
double ExactResult | ( | ) |
Definition at line 41 of file testRootFinder.cxx.
int main | ( | ) |
Definition at line 160 of file testRootFinder.cxx.
double myfunc | ( | double | x | ) |
Definition at line 32 of file testRootFinder.cxx.
double myfunc_p | ( | double * | x, |
double * | |||
) |
Definition at line 55 of file testRootFinder.cxx.
int printStats | ( | TStopwatch & | timer, |
double | root | ||
) |
Definition at line 57 of file testRootFinder.cxx.
int runTest | ( | int | testcase = 0 | ) |
Definition at line 72 of file testRootFinder.cxx.
int testRootFinder | ( | ) |
Definition at line 141 of file testRootFinder.cxx.
const double ALPHA_GAMMA = 16. |
Definition at line 27 of file testRootFinder.cxx.
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.
int gTestCase = 0 |
Definition at line 30 of file testRootFinder.cxx.
const int iterTest = 10000 |
Definition at line 21 of file testRootFinder.cxx.
int myfuncCalls = 0 |
Definition at line 22 of file testRootFinder.cxx.
const double THETA_GAMMA = 0.4 |
Definition at line 28 of file testRootFinder.cxx.
const double Y0_GAMMA = 0.32 |
Definition at line 26 of file testRootFinder.cxx.
const double Y0_P2 = 5.0 |
Definition at line 24 of file testRootFinder.cxx.