Lfpc3

C++ code posted by Me
created at 15 Dec 20:25, updated at 18 Jan 11:42

Edit | Back
1
2
3
4
5
6
x=[-pi/2 0 pi/2 pi];
y=[1 0 1 0]
xx=-2:.01:3.5
yy=spline(x,y,xx);
plot(x,y,'k*',xx,yy)
p = polyfit(x, y, 3) 
115 Bytes in 2 ms with coderay