Rev 16120 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
20 | reyssat | 1 | !set methtit=Exchange the two sides of an equation |
2 | !set methparmtype=parm equation |
||
3 | !set methhelp=This method rewrites the eqnation \(a = b) into \(b = a). |
||
4 | |||
5 | !if $wims_read_parm iswordof form check |
||
16120 | bpr | 6 | !goto $wims_read_parm |
20 | reyssat | 7 | !endif |
8 | |||
9 | !exit |
||
10 | :form |
||
16209 | bpr | 11 | Exchange the two sides of the equation |
16120 | bpr | 12 | !read deduc/methparm.phtml 1 |
20 | reyssat | 13 | |
14 | !exit |
||
15 | :check |
||
16120 | bpr | 16 | !distribute items $methparmobj1 into data,left,sign,right |
17 | methexp=Exchange the two sides of \($left $sign $right) |
||
20 | reyssat | 18 | |
16120 | bpr | 19 | newobject1=$right $sign $left |
20 | oldobject=1 |
||
20 | reyssat | 21 | |
16120 | bpr | 22 | contextlist=$ct_Always,\ |
20 | reyssat | 23 | $ct_Onlywhen the two sides are positive,\ |
24 | $ct_Onlywhen the two sides are of the same sign |
||
25 | |||
26 | !exit |