Error, invalid power
Error, non-algebraic exponent
This error occurs when you attempt to raise an expression to an invalid power, such as a string. See example 1.
By default, Maple assumes that an invalid power implies that the entire expression, for example, x# is to be taken atomically as an expression unto itself (an expression that cannot be broken down into its component meanings).
However, if your typesetting settings are instead set to Typesetting:-Settings(autoatomic=false), an error will occur when you execute x#. See example 2.
Tip: If an expression is executed accidentally, it can lead to error messages (if it is not valid Maple syntax). If this happens, toggling the expression to nonexecutable math removes the error message and changes the math to nonexecutable. To change an expression to nonexecutable math use the shortcut key Shift + F5. For more information, see Executable and Nonexecutable Math.
A string is not a valid exponent.
With 1-D math input, the error message is different.
Error, non-algebraic exponent: two
Solution: Use a valid expression for the exponent, such as a name or numerical value.
The following value is identified as an atomic object.
The same value produces an error because autoatomic is set to false.
Solution: This automatic behavior can be disabled by setting the Typesetting[Settings] command to true, or via the Typesetting Rule Assistant.
Executable and Nonexecutable Math
Download Help Document