Oops, I forgot that 'parse' was never implemented in the InputForm domain in the original Axiom. In this case use:
parse(s:String):InputForm == ncParseFromString(s)$Lisp Regards, Bill Page. On Mon, May 2, 2011 at 11:57 PM, Bill Page <bill.p...@newsynthesis.org> wrote: > > Now the function that Stefan has in mind can be written in a fairly > transparent manner. > > (3) -> ex:InputForm := parse("if x<10 then 2*x else 5*x^2"); expr ex > > (3) > if x < 10 > then 2x > 2 > else 5x > Type: OutputForm > > The function 'parse' returns an unevaluated input form for the > expression inside "...". The function 'expr' prints this in a readable > manner. (InputForm is displayed in this form by default in OpenAxiom.) > _______________________________________________ Axiom-math mailing list Axiom-math@nongnu.org https://lists.nongnu.org/mailman/listinfo/axiom-math