Cloyd Ezell

12 Reputation

2 Badges

21 years, 44 days

MaplePrimes Activity


These are questions asked by Cloyd Ezell

How do I convert a 2D expression constructed with MathMLEditor to a normal 1 D string? I know that example 6 from the maplet builder tutorial does this, but the result is often in a prefix notation. For example, if I enter "x-square + 1" as a 2D expression in the MathMLEditor, the result is `+`(x^2,1). I would like to get more normal x^2+1. I have examined the code generated by the maplet builder and experimented with options in the MathMLEditor and MathML[Import], but to no avail. Is there a way to convert the prefix notation to the more normal infix?

How do I simplify an expression imported from the MathMlEditor? For example, the following code is taken  from Maple help. I have saved the result in the variable abc.

with(Maplets[Elements]): maplet := Maplet([

    [BoxCell("Enter and expression")] , [MathMLEditor('reference'='ME1')],[Button("Done",Shutdown([ME1]))]  ]):

result := Maplets[Display](maplet): abc "= MathML[Import](result[1]);

How do I create a button that performs multiple actions? For example, I might want to create a button that both differentiates and integrates a function with one click. So far, everything I have tried has resulted in evaluating the last action in the list.

Thanks.

Cloyd

Page 1 of 1