The Top 10 Maple Errors10. The exponential function is exp. To express LUklbXJvd0c2Iy9JK21vZHVsZW5hbWVHNiJJLFR5cGVzZXR0aW5nR0koX3N5c2xpYkdGJzYlLUklbXN1cEdGJDYlLUkjbW9HRiQ2LVEvJkV4cG9uZW50aWFsRTtGJy8lLG1hdGh2YXJpYW50R1Enbm9ybWFsRicvJSZmZW5jZUdRJmZhbHNlRicvJSpzZXBhcmF0b3JHRjcvJSlzdHJldGNoeUdGNy8lKnN5bW1ldHJpY0dGNy8lKGxhcmdlb3BHRjcvJS5tb3ZhYmxlbGltaXRzR0Y3LyUnYWNjZW50R0Y3LyUnbHNwYWNlR1EmMC4wZW1GJy8lJ3JzcGFjZUdRLDAuMTExMTExMWVtRictSSNtaUdGJDYlUSJ4RicvJSdpdGFsaWNHUSV0cnVlRicvRjNRJ2l0YWxpY0YnLyUxc3VwZXJzY3JpcHRzaGlmdEdRIjBGJy8lK2JhY2tncm91bmRHUS5bMjU1LDI1NSwyNTVdRidGMg==, you must use the exp function.exp(x);evalf(exp(1));It's not e^x, because e is just another name to Maple. e^x;evalf(e^1);And it's not exp^x.9. Omitting * for multiplicationMaple complains if you try (in 1D Maple input)a b;More of a problem, because Maple doesn't complain, isab;Maple thinks this is a variable named ab.x(1+x);And here it thinks the first x is a function that you're evaluating at 1+x.In 2D math input, a space is considered as implied multiplication, so this is OK:KiZJImFHNiIiIiJJImJHRiRGJQ==However, leaving out the space is still bad: Maple thinks this is the variable ab:SSNhYkc2Ig==... and that this is the function x evaluated at 1+x:LUkieEc2IjYjLCYiIiJGJ0YjRic=Moreover, if you do want a function, in 2D math input you'd better not put a space between the function name and the left parenthesis, because this is interpreted as sin * x:KiZJJHNpbkc2JCUqcHJvdGVjdGVkR0koX3N5c2xpYkc2IiIiIkkieEdGJ0Yo8. Premature evaluationSome functions only work with numerical arguments. If f is such a function, you must avoid using f(x) (e.g. in a plot command) where x is a symbolic variable. For example,f:= x -> add(j, j=0 .. floor(x));
plot(f(x),x = 0 .. 5); In this case, you can get around it by using plot(f, 0..5);7. Those annoying bracketsEvery (, [ or { needs a matching ), ] or }. If you miss one, Maple complains. For example,pointplot([seq([j,f(j)],j=1..10]);One way to help with this is to put in the ), ] or } at the same time as the (,[ or {, rather than writing the whole command from left to right.6. Spelling countsMaple does not forgive spelling errors. Get one little letter in a name wrong and Maple thinks it's something completely different, probably an undefined variable or function. A common clue that something is wrong is that the name appears in the output.wiht(plots);"Spelling" includes case: Maple is case-sensitive, so it treats x and X as completely different.
Unfortunately, there is no consistent policy on when to use upper and lower case.
One particular case that often arises: the constant 3.14159... must be written as Pi, not pi.5. To float or not to floatMaple can use either exact arithmetic, which writes rational numbers as fractions and irrational numbers as symbolic expressions such as LUklbXJvd0c2Iy9JK21vZHVsZW5hbWVHNiJJLFR5cGVzZXR0aW5nR0koX3N5c2xpYkdGJzYlLUkmbXNxcnRHRiQ2Iy1GIzYnLUkjbW5HRiQ2JFEiMkYnLyUsbWF0aHZhcmlhbnRHUSdub3JtYWxGJy1JI21vR0YkNi1RMSZJbnZpc2libGVUaW1lcztGJ0Y0LyUmZmVuY2VHUSZmYWxzZUYnLyUqc2VwYXJhdG9yR0Y9LyUpc3RyZXRjaHlHRj0vJSpzeW1tZXRyaWNHRj0vJShsYXJnZW9wR0Y9LyUubW92YWJsZWxpbWl0c0dGPS8lJ2FjY2VudEdGPS8lJ2xzcGFjZUdRJjAuMGVtRicvJSdyc3BhY2VHRkwtSSNtaUdGJDYlUSUmcGk7RicvJSdpdGFsaWNHRj1GNC8lK2JhY2tncm91bmRHUS5bMjU1LDI1NSwyNTVdRidGNEZVRjQ=, or floating-point arithmetic, which writes numbers such as 2.506628274 using a certain number of decimal places. It is often important to decide which of these is more appropriate in a particular problem. Often there is a tradeoff to consider: exact arithmetic avoids any problems of roundoff error, but can be much slower than floating-point and may result in very complicated expressions. In a midterm a couple of years ago one student wanted to find LUklbXJvd0c2Iy9JK21vZHVsZW5hbWVHNiJJLFR5cGVzZXR0aW5nR0koX3N5c2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cb0Y4RjhGXG9GOEYrRlxvRjg=. If she had used the exact value for J, it would have worked. Unfortunately she used evalf to get J, and Maple's result was undefined. Here's a simpler version of that:limit(n*(1/3 - 1/(3+1/n)),n=infinity);limit(n*(evalf(1/3) - 1/(3+1/n)),n=infinity);4. Forgotten "with"If a command is in a certain package, you must load the package using with or refer to the command using the package name (e.g. orthopoly[T]). Otherwise Maple doesn't know the command.implicitplot(x^2-y^2,x=-1..1,y=-1..1);3. Variable has been assigned a valueIf you want to use something as a symbolic variable, but that variable was already assigned a value, you'll have trouble. Maple sometimes tells you what went wrong. For example:x := 3;sum(x,x=1..3);But sometimes there's no obvious clue.solve(x^2=4);To see what's going on here you'd have to look at the equation you gave to solve.x^2=4;To use x as a variable you'd need to unassign it.x:= 'x';solve(x^2=4);2. Worksheet is out of orderWorksheets are meant to be read (and executed by Maple) from top to bottom.
Unfortunately they are not always produced in the same order. When you go back
and make changes, it's very easy to produce a worksheet where a certain command
won't work properly without a later one. For example:J:=Int((x^(1/4))/(x^2+1), x=0..1);Rule[change, x = s^4](%);with(Student[Calculus1]):1. Functions versus expressionsThis defines an expression:a := x^2;And this defines a function:f := x -> x^2;It's important to know which you have, and how to use them. For example, you might say f(t);but you don't wanta(t);Or in plotting, this would be good:plot(a, x=-1..1);Or this:plot(f(x), x=-1..1);But not this: plot(f, x=-1..1);You could useplot(f, -1..1);but notplot(a,-1..1);