Friday, January 8, 2010

2nd lecture-Secant and Newton's Method

I explained Secant and Newton's method today in the lecture and demonstrated with an example $f(x)=3x+\sin(x)-e^x$. I shall demonstrate the working code in my lecture on Monday. I should have written the general expression for Secant's method as
$$ x_{n+2}=x_n-f(x_n)*\frac{x_{n-1}-x_n}{f(x_{n-1})-f(x_n)}$$
where $n=1,2,3 \cdots$. Have a great weekend and see you all on Monday

No comments:

Post a Comment