Quote (saber_x3 @ Sep 13 2014 12:15pm)
because i asked for the expansion of 1-cosx
doesnt really matter
okay.
For part 2b, I tried using the newton's method but I'm not sure if I'm doin it right or suppose to be using this method to get the accurate answer. any idea on wat I should do
Code
%% PartB
syms x
f= x.^2 - (10^8)*x + 1;
f1= diff(f,x);
x = .5;
tol = 0
dx = tol + 50;
while abs(dx) > tol
x = x - (subs(f,x)/subs(f1,x))
end
This post was edited by TheDiablo3KnowItAll on Sep 13 2014 11:23am