| Inputs |
func |
A function of the form (y)=func(x) with both x and y being real scalars.
This is the function whose roots are calculated.
|
a |
The lower limit of the estimated interval containing the root.
|
b |
The upper limit of the estimated interval containing the root.
|
showit |
If true, the progress of iterations is printed out. Default value: false.
|
itmax |
Maximum number of iterations allowed. Default value: 500
|
tol |
Desired accuracy of the root. |
| Outputs |
root |
The estimated root. |
fvalue |
The value of func at the estimated root.
If the root cannot be found, an error message is printed out.
|