ergo
bisection.h File Reference

Bisection method. More...

#include <cmath>

Go to the source code of this file.

Namespaces

namespace  mat

Functions

template<typename Treal >
int mat::sign (Treal value)
 Sign function returns the sign of the input.
template<typename Treal , typename Tfun >
Treal mat::bisection (Tfun const &fun, Treal min, Treal max, Treal const tol)
 Bisection algorithm for root finding.

Detailed Description

Bisection method.

Author:
Emanuel Rubensson responsible author
Date:
May 7, 2006