f_joint_root function

f_joint_root

f_joint_root

Calculates the root of a function given an initial value and a function to calculate its derivatives.

f_joint_root(f, start, tol = 1e-08, n.max = 1000)

Arguments

  • f: function: A function that receives a vector and return a vector of the same size and a matrix representing its derivatives.
  • start: vector: The initial value to start the algorithm.
  • tol: numeric: The tolerance for the solution.
  • n.max: numeric: The maximum number of iterations allowed.

Returns

A list containing:

  • root vector: The solution for the system f(x)=0.
  • f.root vector: The function f evaluated at the root.
  • iter numeric: The number of steps taken.
  • Maintainer: Silvaneo dos Santos Jr.
  • License: GPL (>= 3)
  • Last published: 2025-03-20