> # Solution to Maple 2 by the good doctor
> # exact, approx:=evalf(exact)
> exact:=(3/2)^100;approx:=evalf(exact);
> # multiple graph plot
> plot([cos(x),1-x^2/2,1-x^2/2+x^4/4!,1-x^2/2+x^4/4!-x^6/6!],x=-2*Pi..2*Pi,y=-2..2,color=[black,gray,pink,red],thickness=[3,1,2,3],legend=["cos","degree 2", "degree 4", "degree 6"]);
> # critical points
> f:=x^2*exp(-x);
> f_prime:=diff(f,x);
> eqn:=f_prime=0;
> critical:=solve(eqn);
> subs(x=0,f);subs(x=2,f);#Or
> eval(f,x=0);eval(f,x=2);#Or
> for i from 1 to 2 do subs(x=critical[i],f) od;
> #equations
> restart;
> eqns:={p+q=S,p*q=P};
> S:=100;P:=900;solve(eqns);
> S:=50;P:=625;solve(eqns);
>