47 template<
typename Treal>
69 template<
typename Treal,
typename Tfun>
74 throw Failure(
"bisection(Tfun&, Treal, Treal, Treal): interval "
#define max(a, b)
Definition integrator.cc:87
int min(int a, int b)
Definition lin_trans.cc:66
Definition allocate.cc:39
Treal bisection(Tfun const &fun, Treal min, Treal max, Treal const tol)
Bisection algorithm for root finding.
Definition bisection.h:70
int sign(Treal value)
Sign function returns the sign of the input.
Definition bisection.h:48
static Treal getMachineEpsilon()
Definition matInclude.h:147
Treal template_blas_fabs(Treal x)