EquivSyntax compares the learners response against the rules an author has set.
EquivSyntax ignores actual numerical values, but checks the syntax or form of a response. Use equivSyntax as a supporting method in combination with equivSymbolic and equivValue to constrain possible response options. For instance where learners are required to give their answer in scientific notation or to a certain number of significant figures.
Addtional options for equivSyntax
Ignore text
This refers to LaTeX text only, and when enabled will ignore any LaTeX text the student enters in the response area.
Rule
There are nine possible rules available.
Number - Any integer or floating point. *
Integer - Any integer. *
Decimal - Any decimal. *
Scientific - Any number in scientific notation. *
Variable - Any variable. *
Fraction - Any fraction.
Mixed fraction - Any mixed fraction.
Simple fraction - Any simple fraction.
Fraction or decimal - A fraction or a decimal.
The rules with an asterisk (*) can have an additional "argument" associated with them. E.g. adding an argument of 1 to number, specifies that it can be any number, as long as that number is 1 digit (zeros before the decimal point are ignored).
Examples