Bisection Function

public function Bisection(f, a, b, err_x) result(x)

Solves the scalar non-linear equation: using the bisection method on the interval

Arguments

Type IntentOptional Attributes Name
public function f(x) result(y)

function defining the non-linear equation

Arguments
Type IntentOptional Attributes Name
real, intent(in) :: x

independent variable

Return Value real

dependent variable

real, intent(in) :: a

left boundary of the interval

real, intent(in) :: b

right boundary of the interval

real, intent(in) :: err_x

admisible error in the solution, that is:

Return Value real

numerical aproximation to the solution


Called by

proc~~bisection~~CalledByGraph proc~bisection Bisection program~test_non_linear_solvers test_non_linear_solvers program~test_non_linear_solvers->proc~bisection