I have the (very simple) equation in Maple:
x := ((1 + ((-4.5) + (-2.6))))
However, although everything should be correct, I get the following error message by Maple: Error, "-" unexpected.
If I remove the minus sign in front of the 4.5, the error disappears and x is calculated as expected. If I remove the minus sign in front of the 2.6 however, the error persists.
Note: I have to work with equations like this, i.e. I want to be able to use such equations with redundant braces (removing unneeded braces is not an option for my application).
Question: What is happening here? And how can I fix that error?
Edit: Maple Version is 16, Win 7, problem exists in both 2D math mode and 1D plain text maple input entered via the standard GUI (input mode doesn't seem to make any difference).
I found out that the problem apparently only exists in document mode. There, it doesn't matter if 1D or 2D Maple Input is used, it always gives an error for the above posted equation. It is maybe also related to floating point tokens only, as the error also disapears when using -4 instead of -4.5.
When using worksheet mode instead of document mode, the error also doesn't appear anymore, so I will just worksheet mode instead of document mode as a workaround.