Fzero

Parent Previous Next

Fzero


Find a zero for a function


Syntax


fzero(f, a, b)

f is a user defined function with single independent variable

a, b are scalars

Return a zero find for function f in range [a,b]


Example


Input

Output

f(x) => sin(x) - cos(x)

fzero(f, 0, pi)


Created with the Personal Edition of HelpNDoc: Produce electronic books easily