Wiris Quizzes service math expression coverage

This documentation page intends to describe the set of mathematical expressions that can be properly parsed by the Wiris Quizzes mathematical engine. We cannot guarantee that all notations used worldwide for a listed expression are supported, but the most common forms are.
Some of the expressions will not be recognized with the default grammar settings because they may have an ambiguous meaning in a general context. You can use the Input Options menu to configure the context that will be used to parse the corresponding correct answers and student answers.
If your integration does not use the Wiris Quizzes Studio, you can do so by adding parameters to the syntax assertion (see the technical reference for the detailed instructions on that).

The most basic expressions are recognized by default by Wiris Quizzes' evaluation engine. Below you can see a list of them.

Supported basic expressions
Sums Substractions
Products Divisions
Fractions Exponents
Roots Decimal points
Periodic decimal numbers Absolute values
Plus-Minus symbol Factorials
Infinity Thousands separator

It's also possible to combine them into a single expression, and it will also be recognized.

Several constants are defined in Wiris Quizzes by default, and the students can use them in their answers. Below you can see a list of them.

Supported constants
Number straight e straight pi
Imaginary straight i Imaginary straight j

To do so, you need the select the corresponding constants in the Validation tab by clicking the checkbox in Allowed input > Options for general.

Wiris Quizzes' engine also recognizes a wide range of functions and its equivalences. Below you can see a list of them.

Supported functions
Exponentials Logarithms
Hyperbolic functions Trigonometric functions
Inverse functions Arithmetic functions

It's also possible to combine different function types into the same answer, and the system will take into account all its properties.

With Wiris Quizzes is possible to interpret the set of solutions of an equation or an inequation and check if it's the same as the one defined by the correct answer. To do so, you need to check Equivalent equations in the Validation tab > Comparison with the student answer.

If you want to see more information about Equivalent equations, see its dedicated page.

Students can also use intervals in answers, and the system will understand them as their equivalent inequality to compare it with the correct answer. Let a comma b element of straight real numbers union left curly bracket plus-or-minus infinity right curly bracket, the following intervals are supported.

Supported intervals
Interval type Expression
Open left parenthesis a comma b right parenthesis
Open-close left parenthesis a comma b right square bracket
Close-open left square bracket a comma b right parenthesis
Close left square bracket a comma b right square bracket

Besides, you can also allow students to answer either intervals or inequations.

If you want to see more information regarding how to create questions with intervals, see its dedicated page.

Furthermore, Wiris Quizzes also understand logic expressions as true and false values, the logical and or or symbols (logical and comma space logical or</html></html>), set constants... Below you can see all the supported logic and sets notations.

Supported logic and sets expressions
true and false values Logical and logical and>
Logical or logical or Chain of inequalities
Sequences of elements Set constants: naturals, integers...
Empty set Set union
Set intersection Set subtraction

Thus, it's possible to combine the intervals or inequations previously analyzed in single answers.

The mathematical evaluation engine also recognizes vectors and matrices. You have to take into account parenthesis notation () is understood for points (or intervals if enabled) and square brackets [] for vectors.

For instance, it's possible to answer with a matrix or a sum, subtraction or product of several of them. Besides, using a grading function, you can accept proportional vectors, for example.

Another accepted syntax is those involving mixed fractions. To do so, you need to select the corresponding option in the Validation tab by selecting the checkbox in Allowed input > Options for quantity.

Finally, as Wiris Quizzes understands units of measurement, it's also appropriate for physics, chemistry, biology, economics, and more. To do so, it understands a wide range of units of measurement and currencies besides their equivalences. You need to enable this option in the Validation tab > Additional properties.

You can see a complete list here.