MathML and fractions

  • administrators

    The are a few ways you can generate typeset maths. Below are a number of options that you can try when generating expressions. They behave slightly differently to each other but I include them here for discussion.

    #temporarily assign to variable inside maple call
    #whole calculation done in maple call
    # using codegen
    #using just Export
    # if you prefer the 5/2 form

    Here is the output they generate. Notice that $d1 to $d4 give the same result, but $d5 is different. Under the hood the first 4 are generating fractions using the MathML <mfrac> whereas $d5 is using <mrow>.