... |
... |
@@ -148,7 +148,7 @@ The consequence of using `\checkAsFunction` with that syntax is that |
148 |
148 |
* the cutoff is now at $$1E7$$ instead of $$1E5$$ |
149 |
149 |
* the comparison values are **not** chosen at random, but at equal spacing between $$min = -10$$ and $$max = 10$$ and |
150 |
150 |
* the function entered by the user is considered as correct if it is numerically equal to $$f + C$$ for some constant $$C$$ |
151 |
|
- (the same at each of the comparision points). |
|
151 |
+ (the same at each of the comparison points). |
152 |
152 |
|
153 |
153 |
<div class="alert green"> |
154 |
154 |
Observe that in case you want to use this extended syntax version, <b>you have to fill in all four fields, with '|' as separator</b>. |
... |
... |
@@ -204,11 +204,11 @@ The user's input (answer to a problem) is stored in a variable using the command |
204 |
204 |
|
205 |
205 |
Details: |
206 |
206 |
* inside the command _checkStringForRelation{}_ several tests can be accommodated. They can be combined using the logical AND, OR, NOT. |
207 |
|
- * equal: in a first step it checks whether 2 strings are algebraically equal. After that, in a second step, it compaires the two terms numerically. (boolean) |
208 |
|
- * Commands of type "string" compaire just two strings i.e. NO algebraic or numerical compairison: |
209 |
|
- * equalString compaires two strings (boolean) |
210 |
|
- * equalTrimmedString disregards blancs and compaires the resulting two strings (boolean) |
211 |
|
- * equalIgnoreCaseString sets all capital letters to small letters und then compaires the two resulting strings. |
|
207 |
+ * 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) |
|
208 |
+ * Commands of type "string" compare just two strings i.e. NO algebraic or numerical comparison: |
|
209 |
+ * equalString compares two strings (boolean) |
|
210 |
+ * equalTrimmedString disregards blancs and compares the resulting two strings (boolean) |
|
211 |
+ * equalIgnoreCaseString sets all capital letters to small letters und then compares the two resulting strings. |
212 |
212 |
* count(x,g)=2 checks the string g and takes the value _true_ if it contains precisely 2 letters x. |
213 |
213 |
|
214 |
214 |
- syntax \checkStringsForRelation{equal( _identifier-input-user_, _correct-solution_ ) }. |
215 |
215 |
|