Question: Use Java Thank you! 5. (30 pts) Secant and Regula falsi. Program the secant and regula falsi methods for the same function, using starting values
Use Java Thank you!
5. (30 pts) Secant and Regula falsi. Program the secant and regula falsi methods for the same function, using starting values x 1-2 and x,- 3.5. Print ou all iterations until an accuracy of 10-9 is reached. Secant method (version 1) x3 .. x 1-f(x 1)*[x2-x1] / [ f(x2)-f(xi ) ] discard x1 rename the remaining values as xi and x2 and repeat Secant method (version 2) discard the xi with the largest If(xi)l rename the remaining values as xI and x2 and repeat Regula falsi x3 = x 1-f(x1)*(x2-xl]/[i(x2)-f(x1)] discard the xi such that f(xj) has the same sign as fx3) rename the re as x1 and x2 and repeat maining values
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
