Numerical analysis mathlab question

3 replies · 2K views · last reply
nhrock3
Messages
403
Reaction score
0
Handwritten Newton's method iteration on squared grid paper: f(x) = 3x^2 + 27.6x + 42.2, the update x_(n+1) = x_n - (x_n^3 + 13.8x_n^2 + 42.2x_n - 9)/(3x_n^2 + 27.6x_n + 42.2), the error formula |e_n| = |x_(n+1) - x_n|, and a table of n, x_n and e_n with values from n = 0 to 5.

how to do those tables of calculation in math lab
i got sum really long formullas in other question and if ill do the itterations i will spend half a day just on that
 
what exactly do you want to do?

set up some functions f(X_n) = X_n+1, should make the iteration easy

then if you're feeling adveNturous, set a loop, which uses X_n to make X_n+1 using thEn formula, then prints (or stores to an array) the value of X_n+1 & E_n+1 then moves onto the next iteration
 
i don't know MATLAB at all
i know several programming langueges
but can you describe more thurely what to do?
 
look up function & loop in help & you should get the idea - i don'e have a copy of MATLAB handy, but have used it a fair bit previously, so shouldn't be hard if you've programmed previously