Search results

  1. A

    MATLAB Matlab newton-rapson

    hey thanx! but now, even though i have added the dot tha mathlab still thinks that it is a mtrix. this is the code: function[a]=search_root_3(x,e) f1=x.^3-10*x.^2+15*x+3; f11=diff(x.^3-10*x.^2+15*x+3,x,1); if abs(f1)<=e fprintf('the root is %d% \n'); return end while...
  2. A

    MATLAB Matlab newton-rapson

    hey i have a question for u guys. i have wrriten this code: function[a]=search_root_3(x,e) f1=x^3-10*x^2+15*x+3; f11=diff(x^3-10*x^2+15*x+3,x,1); if abs(f1)<=e fprintf('the root is %d% \n'); return end while abs(f1)>=e x=x-(f1/f11); f1=x^3-10*x^2+15*x+3...
Top