Logo ROOT   6.08/07
Reference Guide
Classes | Typedefs | Functions | Variables
testGSLRootFinder.cxx File Reference
#include "Math/Polynomial.h"
#include "Math/Functor.h"
#include "Math/RootFinder.h"
#include "Math/RootFinderAlgorithms.h"
#include <iostream>
Include dependency graph for testGSLRootFinder.cxx:

Classes

class  TStopwatch
 Stopwatch class. More...
 

Typedefs

typedef double(* FP) (double, void *)
 

Functions

template<class RF >
int findRoot (RF *r)
 
int main ()
 
double myfunc (double x)
 
double myfunc_deriv (double x)
 
double myfunc_deriv_gsl (double x, void *)
 
void myfunc_fdf (double x, void *, double *y, double *dy)
 
double myfunc_gsl (double x, void *)
 
template<class RF >
int printStats (RF *r, int returnCode, TStopwatch &timer)
 
int testGSLRootFinder ()
 

Variables

const double absTol = 1E-3
 
const int iterTest = 10000
 
int myfuncCalls = 0
 

Typedef Documentation

◆ FP

typedef double( * FP) (double, void *)

Definition at line 21 of file testGSLRootFinder.cxx.

Function Documentation

◆ findRoot()

template<class RF >
int findRoot ( RF *  r)

Definition at line 51 of file testGSLRootFinder.cxx.

◆ main()

int main ( )

Definition at line 175 of file testGSLRootFinder.cxx.

◆ myfunc()

double myfunc ( double  x)

Definition at line 29 of file testGSLRootFinder.cxx.

◆ myfunc_deriv()

double myfunc_deriv ( double  x)

Definition at line 38 of file testGSLRootFinder.cxx.

◆ myfunc_deriv_gsl()

double myfunc_deriv_gsl ( double  x,
void  
)

Definition at line 41 of file testGSLRootFinder.cxx.

◆ myfunc_fdf()

void myfunc_fdf ( double  x,
void ,
double *  y,
double *  dy 
)

Definition at line 45 of file testGSLRootFinder.cxx.

◆ myfunc_gsl()

double myfunc_gsl ( double  x,
void  
)

Definition at line 34 of file testGSLRootFinder.cxx.

◆ printStats()

template<class RF >
int printStats ( RF *  r,
int  returnCode,
TStopwatch timer 
)

Definition at line 60 of file testGSLRootFinder.cxx.

◆ testGSLRootFinder()

int testGSLRootFinder ( )

Definition at line 79 of file testGSLRootFinder.cxx.

Variable Documentation

◆ absTol

const double absTol = 1E-3

Definition at line 26 of file testGSLRootFinder.cxx.

◆ iterTest

const int iterTest = 10000

Definition at line 23 of file testGSLRootFinder.cxx.

◆ myfuncCalls

int myfuncCalls = 0

Definition at line 24 of file testGSLRootFinder.cxx.