Preview onto version 0.3.4
Here you can do some experiments with Rascal. The computation time is
restricted to about 10 secs to prevent high load on server.
Have a look at the documentation or at the examples. If you see wrong plots reload may help.
You job is cancelled as soon someone else accesses this page, so consider a
local installation.
Rascal-toolbox-0.3.4 (C) 2001,2002 Sebastian Ritterbusch
Enter 'help' for help or 'licence' for information about licence and warranty.
"rascal.rc loaded, predefined e, i, pi"
>"The trigonometric lagrange polynomial for f in [0,2*pi) with j=0...2n-1";
>lm(t,j,n,f)=f(j*pi/n)*((abs(t-j*pi/n)<1e-8)?1:sin(n*t-j*pi)*cot(t/2-j*pi/(n+n))/(n+n));
>
>L1(t,f)=lm(t,0,1,f)+lm(t,1,1,f);
>L2(t,f)=lm(t,0,2,f)+lm(t,1,2,f)+lm(t,2,2,f)+lm(t,3,2,f);
>L3(t,f)=lm(t,0,3,f)+lm(t,1,3,f)+lm(t,2,3,f)+lm(t,3,3,f)+lm(t,4,3,f)+lm(t,5,3,f);
>L4(t,f)=lm(t,0,4,f)+lm(t,1,4,f)+lm(t,2,4,f)+lm(t,3,4,f)+lm(t,4,4,f)+lm(t,5,4,f)+lm(t,6,4,f)+lm(t,7,4,f);
>L5(t,f)=lm(t,0,5,f)+lm(t,1,5,f)+lm(t,2,5,f)+lm(t,3,5,f)+lm(t,4,5,f)+lm(t,5,5,f)+lm(t,6,5,f)+lm(t,7,5,f)+lm(t,8,5,f)+lm(t,9,5,f);
>
>f(x)=x;
>G(x)=[f(x) L1(x) L2(x) L3(x) L4(x) L5(x)];
>
>plotGrid(1);plot(G,-pi,3*pi);
>
Questions, Problems, Bugs? Please use this form.