# Create arithmetic questions

Arithmetic questions enable you to assess users' knowledge and comprehension of mathematics and number theory. You can ensure each respondent receives a unique question by including variables enclosed with curly braces that randomly generate numbers within the problem. For example, if you set variables x, y, and z with a Min 1 to Max 5 number range in 1-step increments, the question “You have {x} green marbles, {y} red marbles, and {z} blue marbles. How many marbles do you have in total?” will randomly generate a rational number (1, 2, 3, 4, 5) for {x}, {y}, and {z}.

As a best practice, D2L recommends that you create written response (WR) question types for arithmetic problems that require users to demonstrate their calculations and show their work.

- In the Question Library, from the New button, click Arithmetic Question (2+2).
- In the General area, enter your arithmetic question details using the following supported operations, functions and constants:

To verify your formula before sharing it with learners, click Test.**Enumerations****Description**+,-,*,/,\,^ Basic mathematical operators % Modulo (remainder) operator {x}^{y} x to the power of y abs({n}) Absolute value of n cos({n}) The cosine of n (in radians) sin({n}) The sine of n (in radians) sqr({n}) The square root of n tan({n}) The tangent of n (in radians) log({n}) The log base 10 of n ln({n}) The log base e of n atan({n}) The inverse tangent of n sec({n}) The secant of n cosec({n}) The cosecant of n cotan({n}) The cotangent of n Factorial Factorial of n, or (n!) exp The power of natural log (e) pi pi 3.14159 (accurate up to 50 decimal places) e e 2.71828 (accurate up to 50 decimal places) - In the Variables area, do the following:
- Create any variables you want to use with your question by giving the variable a Name, a minimum value in Min, and a maximum value in Max.
- Set the number of decimals to provide in the Decimal Places drop-down list.
- To set the system's incrementing steps as it generates numbers from the range set by the Min and Max fields, enter a number in the Step field.

- To verify your question, click Preview.