Question: c language secent method EE 160 Homework 14 - Secant method algorithm We will implement the Secant Method in C code to find ONE root
c language EE 160 Homework 14 - Secant method algorithm We will implement the Secant Method in C code to find ONE root of the polynomial function: f(x) = -0.98x +18.35x? -0.087x +0.90004 Instructions: Create a program that implements the secant method. You will need to: 1. Prompt & read input from the user (for initial X values XO and X1). 2. Create a function (outside the 'main' function) for the polynomial equation, whose input is the value of 'X' and the output returned will be the value of F(X) defined by the polynomial. 3. Create a loop within the main function to calculate the next value of X (using the given steps of the secant method) 4. Terminate the loop when F(X) value is almost zero. This can be achieved by using an 'if' statement to check if F(X) DropBox. Create a folder 'hw14. Upload this text-file. 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
