Professional Documents
Culture Documents
Solution of nonlinear algebraic equations with Matlab FZERO scalar nonlinear zero finding
Matlab function for solving a single nonlinear algebraic equation Finds the root of a continuous function of one variable Syntax: x = fzero(fun,xo)
fun is the name of the user provided Matlab m-file function (fun.m) that evaluates & returns the LHS of f(x) = 0. xo is an initial guess for the solution of f(x) = 0.
Algorithm uses a combination of bisection, secant, and inverse quadratic interpolation methods.
f ( x)
Call fzero from the Matlab command line to find the solution:
>> xo = 0; >> fzero('fun',xo) ans = 0.5376