This example takes a LaTeX expression, converts it to MathML, and then to Maple
>
|
|
>
|
|
| (1) |
>
|
|
| (2) |
You can achieve the same thing by passing the option output = maple.
>
|
|
| (3) |
Remember that backslash is an escape character, n means newline, t means tab, and \ means a backslash. When inputting expressions in a string, the backslashes will need to be doubled-up. This is not needed when reading strings from a file.
>
|
|
>
|
|
Here is a nested fraction
>
|
|
>
|
|
If that fraction had numbers instead of variables, the converted expression would simplify. To see the structure, use the output=inert option, with will insert inert operators. Inert operators are prefixed with a % symbol, and don't evaluate.
>
|
|
>
|
|
| (6) |
>
|
|