Learn R Programming

MixStable (version 0.1.0)

false_position_update: False position method update step

Description

Performs a single iteration of the false position (regula falsi) method for root-finding. This method approximates the root of a function by using a linear interpolation between two points where the function changes sign.

Usage

false_position_update(a, b_n, f_a, f_b, objective_func)

Value

Numeric scalar. Updated estimate for the root after one iteration.

Arguments

a

Numeric scalar. Left bound of the interval.

b_n

Numeric scalar. Right bound of the interval (current step).

f_a

Numeric scalar. Value of the objective function evaluated at `a`.

f_b

Numeric scalar. Value of the objective function evaluated at `b_n`.

objective_func

Function. The objective function whose root is being sought.