On 2013-10-22, Martin Kraska <kraska at fh-brandenburg.de> wrote:
> We encountered a problem with expressions containing exponents which start
> with unary minus, just like
>
> e^-c/b
>
> in Maxima, this is equivalent to (e^(-c))/b, in SMath Studio, this is
> understood as e^(-c/b), i.e. something entirely different.
(1) You can probably adjust the values of the symbol properties RBP and
LBP for MEXPT or whatever the operator is, and get some different
behavior in the output display.
(2) Probably a more general solution is to rework the output display
(presumably 'grind') so that it always prints <op>(<arg>, <arg>, ...)
for all expressions, e.g. something like ?mexpt(%e, -c/b) in the case
given. I'm guessing that's always parseable on the SMath side.
(3) You can also call ?print to print the Lisp form -- that's more work,
especially as some expressions have special representations, e.g.
Taylor series, polynomials in canonical form -- but it's guaranteed
to capture everything in the expression.
I can help figure out (2) if you want.
best
Robert Dodier