> # Maple sucks, well only slightly more that other software. > # Maple crashes, save early and often > # Maple does not re-execute commands when it loads > # Maple thinks you know what you are doing, it echos commands it does not understand > implicitplot3d(x+y+z=1,x=0..2,y=0..2,z=0..2,title="Command not found"); > # Maple is very picky about syntax > # syntax 1, commands that don't end until either a `;' or a `:' appear > 2+2 > > > 2+2; > # syntax 2, `:' makes Maple silent > 2+2: > # syntax 3. Maple can't figure out 3x or xy or x y or x(y) > 3x; > 3*x; > xy; > x*y; > # syntax 4. Maple uses `:=' for assignment, and `=' for equations. > a:=2; > b:=3; > a*b;ab; > solve({x+y=7,x-y=5}); > eqn:={x^2+y^2=4,(x-3)^2+y^2=4}; > solve(eqn); > # Maple sometimes gives ugly answers. The above is another way of writing plus/minus sqrt(7) > ### WARNING: allvalues now returns a list of symbolic values instead of a sequence of lists of numeric values > allvalues(solve(eqn)); > # f(x):=x^2; does not work, instead use f:=x->x^2; > f(x):=x^2; f(2); f(t); > f:=x->x^2; f(2); f(t); > #Maple is too smart for its own good. Both expressions and functions work in many places. > plot(x^2,x=-1..1);plot(f(x),x=-1..1); > # Syntax it is Pi and not pi > pi;Pi;evalf(pi);evalf(Pi); > # Syntax the is no e or E, instead do > e:=exp(1);e^2;evalf(e^2); > #but it can draw some pretty pictures > f:=(x,y)->x^3-3*x*y^2; > plot3d(f(x,y),x=-3..3,y=-3..3,title=`monkey saddle`); > #it can integrate like a champ > Int(Int(f(x,y),x=0..3),y=0..3)=int(int(f(x,y),x=0..3),y=0..3); > # check answers > eqn;subs({x=1,y=1}, eqn); > ### WARNING: allvalues now returns a list of symbolic values instead of a sequence of lists of numeric values > subs(allvalues(solve(eqn))[1],x^2+y^2); > #Maple lies! > a:=2; > a+a; > a; >