Possible bug - copying and pasting from output not retaining parentheses

AllanKafka
2013-09-02
2013-09-07
  • AllanKafka

    AllanKafka - 2013-09-02

    Hi all! Please excuse me if that's not the right place for discussing this sort of thing.
    I recently encountered a behaviour I was not expecting in wxMaxima.
    I wrote a simple equation, such as

    epsilonprimo_s=epsilon_su/(1-xi)*(xi-deltaprimo);
    

    executing the line gave the same expression as output, with better formatting.
    I then proceeded to substitute some variables with their values - in order to do so I copied the output in a new line containing the subst() function, in order to get the line to look like this:

    subst[epsilon_su=.01, xi=.18532, deltaprimo=0.09756], 
    epsilonprimo_s=(epsilon_su*(xi−deltaprimo))/1−xi);
    

    (newline for easier reading).
    Notice anything? The parentheses in the denominator have disappeared, leading to a completely wrong result in the end.
    I don't think this should be the default behaviour; I think the copied output should retain the same mathematical meaning as the MathML-like display when pasted.

    EDIT: I am using wxMaxima 13.04.0 on Mac OS X 10.6.8.

    Am I missing anything?
    Thank you in advance.

    David

     
    Last edit: AllanKafka 2013-09-02
  • Ago77

    Ago77 - 2013-09-07

    Not sure I understand the question, but ":" or ":=" should be used in the definitions, not "=". This works fine:
    epsilonprimo_s: epsilon_su/(1-xi)*(xi-deltaprimo);

    subst([epsilon_su=.01, xi=.18532, deltaprimo=0.09756], epsilonprimo_s);

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks