bisect Function

private pure function bisect(x1, x2) result(x3)

Bisection step.

Arguments

Type IntentOptional Attributes Name
real(kind=wp), intent(in) :: x1
real(kind=wp), intent(in) :: x2

Return Value real(kind=wp)

point half way between x1 and x2


Called by

proc~~bisect~~CalledByGraph proc~bisect root_module::bisect proc~anderson_bjorck_king root_module::anderson_bjorck_king_solver%anderson_bjorck_king proc~anderson_bjorck_king->proc~bisect proc~secant root_module::secant proc~anderson_bjorck_king->proc~secant proc~bdqrf root_module::bdqrf_solver%bdqrf proc~bdqrf->proc~bisect proc~bisection root_module::bisection_solver%bisection proc~bisection->proc~bisect proc~itp root_module::itp_solver%itp proc~itp->proc~bisect proc~muller root_module::muller_solver%muller proc~muller->proc~bisect proc~regula_falsi_step root_module::regula_falsi_step proc~regula_falsi_step->proc~bisect proc~ridders root_module::ridders_solver%ridders proc~ridders->proc~bisect proc~secant->proc~bisect proc~zhang root_module::zhang_solver%zhang proc~zhang->proc~bisect proc~zhang->proc~secant proc~anderson_bjorck root_module::anderson_bjorck_solver%anderson_bjorck proc~anderson_bjorck->proc~secant proc~illinois root_module::illinois_solver%illinois proc~illinois->proc~regula_falsi_step proc~pegasus root_module::pegasus_solver%pegasus proc~pegasus->proc~secant proc~regula_falsi root_module::regula_falsi_solver%regula_falsi proc~regula_falsi->proc~regula_falsi_step

Source Code

    pure function bisect(x1,x2) result(x3)

    implicit none

    real(wp),intent(in) :: x1,x2
    real(wp) :: x3 !! point half way between x1 and x2

    x3 = (x1 + x2) / 2.0_wp

    end function bisect