[Maxima] Parsing Re: Maxima latex output
Tue Oct 24 09:20:27 CDT 2006
>>>>> "Robert" == Robert Dodier <robert.dodier at gmail.com> writes:
Robert> On 10/23/06, DieMongo <diemongo at yahoo.dk> wrote:
>> (%i10) simp:false;
>> (%o10) false
>> (%i11) tex(13*x+14-12+x-3*x = 2*x -15 +7*x -12,"maximaout.tex");
>> (%o11) false
>> (%i12) 13*x+14-12+x-3*x = 2*x -15 +7*x -12;
>> (%o12) 13*x+14-12+x+(-3)*x = 2*x-15+7*x-12
Robert> Here is a quick fix.
Robert> :lisp (put '$- 100 'rbp)
Robert> After entering that, I think you'll find you get the output you were expecting.
Robert> That modifies the so-called right binding power (operator precedence)
Robert> of the minus sign. I am inclined to believe that 100 is actually a good
Robert> value here. I can go into details if someone wants to hash it out.
Robert> However, bear in mind that some Maxima input files have expressions
Robert> that are parsed differently. In particular several of the regression test
Robert> files (maxima/tests/rtest*.mac) have stuff like %e^-x*y, which
Robert> parses as exp(- (x * y)) after the above change, instead of exp(- x) * y
Robert> as they do by default.
Isn't exp(-x)*y the correct parsing of %e^-x*y?
More information about the Maxima