... |
... |
@@ -211,7 +211,7 @@ As the user also shouldn't give any free variable, the first parameter of `\chec |
211 |
211 |
|
212 |
212 |
Any answers by a user to a problem (called user input) can be |
213 |
213 |
- corrected using the command _equal()_, |
214 |
|
-- checked using the command _checkStringForRelation{}_. |
|
214 |
+- checked using the command _checkStringsForRelation{}_. |
215 |
215 |
|
216 |
216 |
Additionally the user's input may also be checked numerically using the command _checkAsFunction_. |
217 |
217 |
How this is done is explained below including by an example. |
... |
... |
@@ -220,7 +220,7 @@ The user's input (answer to a problem) is stored in a variable using the command |
220 |
220 |
`\inputAsFunction{<variable name>}{<identifier>}`. Hence we can refer to the user input by its identifier. |
221 |
221 |
|
222 |
222 |
Details: |
223 |
|
-* inside the command _checkStringForRelation{}_ several tests can be accommodated. They can be combined using the logical AND, OR, NOT. |
|
223 |
+* inside the command _checkStringsForRelation{}_ several tests can be accommodated. They can be combined using the logical AND, OR, NOT. |
224 |
224 |
* equal: in a first step it checks whether 2 strings are algebraically equal. After that, in a second step, it compares the two terms numerically. (boolean) |
225 |
225 |
* Commands of type "string" compare just two strings i.e. NO algebraic or numerical comparison: |
226 |
226 |
* **equalString** compares two strings (boolean) |
... |
... |
@@ -233,7 +233,7 @@ Details: |
233 |
233 |
* count(x,g)=2 checks the string g and takes the value _true_ if it contains precisely 2 letters x. |
234 |
234 |
|
235 |
235 |
- syntax \checkStringsForRelation{equal( _identifier-input-user_, _correct-solution_ ) }. |
236 |
|
-- for relations we put the corresponding expressions as arguments into the command e.g. we count the number of plus-signs in the user input by \checkStringForRelation{ _count number of plus signs_, _identifier-input-user_ }. |
|
236 |
+- for relations we put the corresponding expressions as arguments into the command e.g. we count the number of plus-signs in the user input by \checkStringsForRelation{ _count number of plus signs_, _identifier-input-user_ }. |
237 |
237 |
|
238 |
238 |
To check the user's answer numerically, use the command \checkAsFunction or \checkFuncForZero |
239 |
239 |
|
240 |
240 |
|