/* MathASMD.xbt - a subordinate rule set from Math.xbt for XbertClass.php
The command to test for ADD SUB MUL DIV is passed in the global variable <test>.
If the expected global variable <test> is not there it is set to ADD.
This can happen when testing this rule set by itself.
When <test> is in column 2, it becomes the command to add, subtract, multiply or divide.
When in column 3, it is part of the text being displayed.
*/
20 ,isg, <test>
,fal, 11
20 ,,Since this did not come from Math.xbt, it defaults to the ADD command
,glo, <test> ADD
#,,Setup Local Variables used in testing
11 ,loc, <n1> 23
,loc, <n2> 19
,loc, <n3> 8
,loc, <n4> 0
//,,Numeric Constants
,,<test> Numeric constants using default response variable
,<test>, 7 8
,,- - - <test> Result of 7 with 8 in default response variable is <>
,,---
,,<test> one Numeric constant one variable using default response variable
,<test>, <n2> 7.1
,pau,- - - <test> Result of <n2> with 7.1 in default response variable is <>
//,,Numeric Variables
,,- - -
,,<test> Numeric Variables <n1> with <n2> using default response variable
,<test>, <n1> <n2>
,,- - - <test> Result of <n1> with <n2> in default response variable is <>
,,- - -
,,<test> Numeric Variables <n2> with <n2> using default response variable
,<test>, <n2> <n2>
,pau,--- <test> Result of <n2> with <n2> in default response variable is <>
,,---
,,<test> Numeric variables <n1> with <n3> result going to OtherVar
,<test>, <n1> <n3> <OtherVar>
,,--- <test> Result of <n1> with <n3> in < OtherVar > is <othervar>
,,---
,,<test> Numeric variables <n4> with <n1>
,<test>, <n4> <n1> <OtherVar>
,pau,--- <test> Result of <n4> with <n1> in < OtherVar > is <othervar>
,,---
#,, the divide by zero command is bypassed
,equ, <test> DIV
,pau,- - - - <test> Divide by zero is bypassed.
,end,
<n3>,,<test> Numeric variables <n2> with <n4>
,<test>, <n2> <n4> <OtherVar>
,pau,--- <test> Result of <n2> with <n4> in OtherVar is <OtherVar>
|