Author a formula sub-type

This sub-type is authored by selecting the Formula option from the Sub-type drop-down list during mathematical formula question authoring.

Examples of accepted syntax for defining the Answer field value for this sub-type are:

  • (e^x)*sin(x^2)

  • 5*x^4

The formula sub-type Answer field:

  • Accepts numbers, formulas, and more advanced operations (Example — trigonometric functions, logarithms, etc.).

  • Accepts equivalent responses.

  • Doesn't accept equations (expressions consisting of two components separated by an = sign).

Example of this sub-type

  • Question statement:

y=x5

What is the derivative of y with respect to x?

Enter only the expression for the derivative, omitting "y=..."

  • Answer field syntax:

5*x^4

Example of this sub-type with an algorithm

  • Question statement:

y=x$n

What is the derivative of y with respect to x?

Enter only the expression for the derivative, omitting "y=..."

  • Algorithm:

$n = rint(20) + 2;

  • Answer field syntax:

$n*x^($n-1)