Impact-Site-Verification: dbe48ff9-4514-40fe-8cc0-70131430799e

Search This Blog

Simple polynomial evaluation | MATLAB Cody

Code:

function y = simplePoly(x,n)
  y=0;
  t=1;
  for i=1:n+1
     y=y+t;
      t=t*x;
  end
end

No comments

Popular Posts

Followers