newton_1d Subroutine

public subroutine newton_1d(f, x, tol, max_iters)

Arguments

Type IntentOptional Attributes Name
procedure(f_1d) :: f
real(kind=pr), intent(inout) :: x
real(kind=pr), intent(in) :: tol
integer, intent(in) :: max_iters

Variables

Type Visibility Attributes Name Initial
real(kind=pr), public :: df
real(kind=pr), public :: fval
integer, public :: i
real(kind=pr), public :: step