VectorNewton Function

public function VectorNewton(f, J, x0, err_x, err_f, max_iter) result(x)

Solves the vector non-linear equation: using Newton's method.

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, (size(x))

dependent variable

public function J(x) result(y)

jacobian of function

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

independent variable

Return Value real, (size(x),size(x))

dependent variable

real, intent(in) :: x0(:)

initial aproximation to the solution:

real, intent(in) :: err_x

admisible error in the solution

real, intent(in) :: err_f

admisible error in the equation

integer, intent(in) :: max_iter

maximum number of iterations

Return Value real, (size(x0))

numerical aproximation to the solution


Calls

proc~~vectornewton~~CallsGraph proc~vectornewton VectorNewton proc~solve solve proc~vectornewton->proc~solve proc~factor_lu factor_LU proc~solve->proc~factor_lu proc~solve_lu solve_LU proc~solve->proc~solve_lu proc~solve_l solve_L proc~solve_lu->proc~solve_l proc~solve_u solve_U proc~solve_lu->proc~solve_u

Called by

proc~~vectornewton~~CalledByGraph proc~vectornewton VectorNewton program~test_non_linear_solvers test_non_linear_solvers program~test_non_linear_solvers->proc~vectornewton