Skip to content

Expressions

Input fields for mathematical expressions can be created using the input type expression in the input element.

The inputs into this input field are passed to the computer algebra system and compared with the specified solution.

Example

<p>
    According to Newton's laws of motion, how can the force <m>F</m>
    be expressed in terms of the mass <m>m</m> and the acceleration <m>a</m>?
</p>
<p>
    Answer: <m>F = </m> <input><expression>m*a</expression></input>
</p>