Maple Grading Issues: Bugs and Modifications [University of Waterloo Mobius Help Web]

Maple Grading Issues: Bugs and Modifications

 

Some grading problems are just Maple itself.

Square Roots and Minus Signs
A square root preceded by a negative sign will not be exported properly (or possibly received properly by Mobius).  This only (seems) to happen when it is just a negative sign. For example -3^1/2 will not export (it results in a "NaN" meaning "undefined". However -6*3^1/2 exports fine.

The fix is simple. Convert the value to a string in your Maple code:

X:=-3^1/2;
Xp:=convert(X,string);

then export that string value. You can treat the subsequent value in Mobius as if it is numeric.

Problems with π
Maple code usually generates "pi", but in the $RESPONSE value we see "Pi". You can use StringTools:-SubstituteAll on the value before exporting it from Maple:

Ax:=3*pi-2;
AxT:=convert(Ax,string);
Axport:=StringTools:-SubstituteAll(AxT,`pi`,`Pi`);

The back quotes are needed because your Maple code is withing double quotes.


 
Maple Grading Issues Index

Main Index

Last updated: 03/23/2023 SS/DAG