Numerical Method - Old Questions
7. Write an algorithm to solve non-linear equation using secant method. On the basis of your algorithm write a C-program that reads two initial guess from keyboard and displays the following information if the solution is obtained:(5 + 7)
a) Calculated root of the equation
b) Required number of iterations
c) Functional value at calculated root
If solution is not obtained within 200 iterations your program should be terminated by displaying the following message:
NO SOLUTION WITHIN 200 ITERATIONS
TRY AGAIN WITH NEW INITIAL VALUES
12 marks
|
Asked in 2075( Old Course)