
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"
>"Naive evaluation of polynomials";
>Precision(-5);
>
>p(x)=4*x*(1-x);
>q(x)=4*x-4*x*x;
>r(x)=4*x-4*sqr(x);
>s(x)=1-(2*x-1)*(2*x-1);
>t(x)=1-sqr(2*x-1);
>
>"Optimal solution for x=[0,1] is [0,1]";
>x=[0,1];[p(x) q(x) r(x) s(x) t(x)]
[[0,4] [-4,4] [-4,4] [-0,2] [-0,1]]
>
>"Optimal solution for x=[-1,1] is [-8,1]";
>x=[-1,1];[p(x) q(x) r(x) s(x) t(x)]
[[-8,8] [-8,8] [-8,4] [-8,4] [-8,1]]
>
>
>P(z)=[diam(p(z+x)) diam(q(z+x)) diam(r(z+x)) diam(s(z+x)) diam(t(z+x))];
>plotGrid(1);
>plot(P,-1.5,2.5);
>"Output diameters for input intervals of [-1,1]+x";
>
Questions, Problems, Bugs? Please use this form.