You can view this site in

the language of your choice.To take the quizzes, you must log in.

*Username:***student***Password:***Formulas.1**

- MathML
### MathML

## MathML

MathML equations are more easily created using an equation (or formula) editor, which are many and with varying degrees of ease of use. See for example Wikipedia for a list of commercial and open source systems.

The 'Plain text area' editor and the 'TinyMCE HTML' editor display the HTML code of MathML equations with «» tag delimiters and ¨¨ double quotes. The 'Atto HTML' editor display the HTML code of MathML equations with <> tag delimiters and "" double quotes.

When creating the equation with an editor, it is easier to write a number, say 99, instead of variables, and then replace the 99's with the variables {a}, {b} and {c} in the HTML code.

For example, use the WIRIS editor to create the following equation:

and then change the 99's with {a}, {b} and {c} directly in the HTML code.

### Example

Substitute the numerical values , and in the equation

then display the equation in the text field. Use the

**MathML**syntax.Variables Global variables a=4; b=3; c=7.1; Main question Question text! <math style="font-family:stix" xmlns="http://www.w3.org/1998/Math/MathML"> <mstyle mathsize="18px"> <mn>{a}</mn> <msup> <mi>x</mi> <mn>2</mn> </msup> <mo>+</mo> <mn>{b}</mn> <mi>x</mi> <mo>+</mo> <mn>{c}</mn> <mo>=</mo> <mn>0</mn> </mstyle> </math>

{a}, {b} and {c} will be substituted by the numerical value of , and , respectively, and the following equation will be displayed in the question field:

### Example

Use variables and expressions in the equations of the main question text, the general feedback and the part's feedback. Use the

**MathML**syntax.## Quiz settings

## Question settings

The Formulas question should look like this:

Note that answers can be given as -5 and 3, or 3 and -5. See Answers in one order or another.

### References

MathML on the W3C site