Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function y=nested(d,c,x,b)
- if nargin<4
- b=zeros(d,1);
- end
- y=c(d+1);
- for i=d:-1:1
- y = y.*(x-b(i))+c(i);
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement