Problem 965. False position (linear interpolation) method of finding a root.

Solution 546990

Submitted on 17 Dec 2014
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Fail
%% f=@(x) x.^2-4; x_lower = 1; x_upper = 3; es = 0; maxit=1; y_correct = 1.75; assert(isequal(false_position(f,x_lower,x_upper,es,maxit),y_correct))

Error: Undefined function 'false_position' for input arguments of type 'function_handle'.

Suggested Problems

More from this Author17

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!