Compare two revisions of: Feedback and Explanations

... ... @@ -41,7 +41,7 @@ The optional condition is an expression that can be evaluated to true or false.
41 41 | `correct(arg)` |Boolean. Returns true if answer is correct. *arg* revers to an answer. Works on the level of questions or answers.| `correct(ans_1)`<br/><br/> [example in WebMiau](https://miau.mumie.net/web-miau/editor/content%2Fexamples%2Fexplanations%2Fprb_differentiated_feedback_3.src.tex)|
42 42 | `count(symbol, arg)` | Returns an integer. Specifies how often the *symbol* occurs in arg. *arg* is the name of a string variable. It may refer to an answer. | `count(x,ans) returns # of symbols x in ans.`<br/><br/>`use case: # opening brackets = # closing brackets`<br/><br/>` count((,ans) = count(),ans)`|
43 43 | `valid(arg)` |Boolean. Checks if the given answer is a valid mathematical expression. *arg* refers to an answer. | `valid(ans)` |
44 -| `equal(arg1, arg2)` | Boolean. Checks if the two expressions are algebraically identical. If this check is not successful a numerical comparison follows.<br/><br/> This also works for matrix variables. If not all fields of the matrices are edited the equal check will return false. Matrix operations like multiplication, trace, ... are supported as well as indexing and slicing. <br/><br/>For more complex numeric comparisons defining `\checkAsFunction` might help. | `equal(ans_2, myvar)`<br/><br/> `equal(det(ans),0)` <br/><br/> [matrix example in WebMiau](https://miau.mumie.net/web-miau/editor/content%2Fexamples%2Fexplanations%2Fprb_differentiated_feedback_5.src.tex) [matrix example with visualization in WebMiau](https://miau.mumie.net/web-miau/editor/content%2Fexamples%2FgraphicsMatrix%2Fprb_vertex_of_a_parabola.src.tex) |
44 +| `equal(arg1, arg2)` | Boolean. Checks if the two expressions are algebraically identical. If this check is not successful a numerical comparison follows.<br/><br/> This also works for matrix variables. If not all fields of the matrices are edited the equal check will return false. Matrix operations like multiplication, trace, ... are supported as well as indexing and slicing. <br/><br/>For more complex numeric comparisons defining `\checkAsFunction` might help. | `equal(ans_2, myvar)`<br/><br/> `equal(det(ans),0)` <br/><br/> [matrix example in WebMiau](https://miau.mumie.net/web-miau/editor/content%2Fexamples%2Fexplanations%2Fprb_differentiated_feedback_5.src.tex) <br/> [matrix example with visualization in WebMiau](https://miau.mumie.net/web-miau/editor/content%2Fexamples%2FgraphicsMatrix%2Fprb_vertex_of_a_parabola.src.tex) |
45 45 | `equalFormat(arg1, arg2)` | Boolean. Checks if the two matrices have the same format. *arg1/arg2* is a matrix variable or refers to a matrix. If some fields of the matrices are not filled, it will return false.| `equalFormat(ans_5, aMatrix)` <br/><br/> [example in WebMiau](https://miau.mumie.net/web-miau/editor/content%2Fexamples%2Fexplanations%2Fprb_differentiated_feedback_5.src.tex)|
46 46 | `equalString(arg1, arg2)` | Boolean. Checks if two strings are identical. *arg1*/*arg2* is a variable, a reference to an answer or a string. | `equalString(Hallo,ans_5)`, `equalString(ans,myStringVar)` |
47 47 | `equalTrimmedString(arg1, arg2)` |Boolean. Same as `equalString` but all blancs are removed. | |
48 48