36 #include "gsl/gsl_roots.h"
46 Bisection::Bisection()
49 GSLRootFSolver * s =
new GSLRootFSolver( gsl_root_fsolver_bisection );
53 Bisection::~Bisection()
59 Bisection::Bisection(
const Bisection &) : GSLRootFinder()
64 Bisection & Bisection::operator = (
const Bisection &rhs)
67 if (
this == &rhs)
return *
this;
77 GSLRootFSolver * s =
new GSLRootFSolver( gsl_root_fsolver_falsepos );
87 FalsePos::FalsePos(
const FalsePos &) : GSLRootFinder()
92 FalsePos & FalsePos::operator = (
const FalsePos &rhs)
95 if (
this == &rhs)
return *
this;
104 GSLRootFSolver * s =
new GSLRootFSolver( gsl_root_fsolver_brent );
114 Brent::Brent(
const Brent &) : GSLRootFinder()
119 Brent & Brent::operator = (
const Brent &rhs)
122 if (
this == &rhs)
return *
this;
136 GSLRootFdFSolver * s =
new GSLRootFdFSolver( gsl_root_fdfsolver_newton );
146 Newton::Newton(
const Newton &) : GSLRootFinderDeriv()
151 Newton & Newton::operator = (
const Newton &rhs)
154 if (
this == &rhs)
return *
this;
163 GSLRootFdFSolver * s =
new GSLRootFdFSolver( gsl_root_fdfsolver_secant );
173 Secant::Secant(
const Secant &) : GSLRootFinderDeriv()
178 Secant & Secant::operator = (
const Secant &rhs)
181 if (
this == &rhs)
return *
this;
187 Steffenson::Steffenson()
190 GSLRootFdFSolver * s =
new GSLRootFdFSolver( gsl_root_fdfsolver_steffenson );
194 Steffenson::~Steffenson()
200 Steffenson::Steffenson(
const Steffenson &) : GSLRootFinderDeriv()
205 Steffenson & Steffenson::operator = (
const Steffenson &rhs)
208 if (
this == &rhs)
return *
this;