Search code examples
stringoperator-keywordmaxima

wxMaxima Change equal sign (=) into a string (-->)


I have the following wxMaxima code:

/* [wxMaxima: input start ] */

one:2*H[2];

/* [wxMaxima: input end ] */

/* [wxMaxima: input start ] */

two:O[2];

/* [wxMaxima: input end ] */

/* [wxMaxima: input start ] */

three:2*H[2]*O;

/* [wxMaxima: input end ] */

/* [wxMaxima: input start ] */

one+two = three;

/* [wxMaxima: input end ] */

and I would like to change the equal sign (=) with the arrow (-->). Thank you very much for any help.


Solution

  • Try this: infix("-->"); and then you can input foo + bar --> baz directly (no need to write it first with = and then substitute --> for =).