I am trying to solve the following question:
Use the bisection method to find solutions accurate to within 10^−4 on the interval [−5, 5]
10^−4
[−5, 5]
to define an equation that can be evaluated by feval, you need to define as a function.
feval
Try defining fn as fn=@(x)(x^5-10x^3-4). This way you can use feval(fn,3).
fn
fn=@(x)(x^5-10x^3-4)
feval(fn,3)