Question: you will be using secant method to find a root for an equation of the form f(x)=0, however you will be starting with ONE guess
you will be using secant method to find a root for an equation of the form f(x)=0, however you will be starting with ONE guess instead of two.
secant method uses any one of the the finite difference approximations to the derivative.
You might want to test your program with the equation ln(sin(x)) = -0.25
Note: make sure you know how to calculate the naperian logarithm in javascript
Note: x needs to be in radians
Note: use an initial approximation of x=1
by the way, you might want to check your answer with a calculator, it should be around
x= 0.8927517423921186
PLEASE WRITE IN NOTEPAD++. WRITE IN JAVASCRIPT TO CONVERT IT INTO AN HTML FILE.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
