# Math Help - numerical analysis mathlab question

1. ## numerical analysis mathlab question

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

2. http://www.mathhelpforum.com/math-he...ns-method.html

BTW if your referring to MATLAB, it stands for Matrix Laboratory.

Don't worry I made the same mistake also.

3. Originally Posted by transgalactic
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
A script like:

Code:

f=inline('x^3+13.6*x^2+42.2*x-9');

Df=inline('3*x^2-27.6*x+42.2');

x=1;
for n=0:4
err=f(x)/Df(x);
rv=[rv;[n,x,err]];
x=x-err;
end

disp(rv);
should do.

You will have to add your own lables.

Though you might find Excel a more suitable tool if you are not a fluent programmer.

CB