Rev 20 | Rev 16120 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
20 | reyssat | 1 | !set methtit2=Introduce an obvious inequality after simple arithmetics |
2 | !set methtit=Introduce an obvious inequality |
||
3 | !set methenv=ZZ QQ RR |
||
4 | !set methparmtype=function, choice 4, function |
||
5 | !set methhelp=This method allows you to enter an inequality \(A > B) into\ |
||
6 | the hypotheses, whenever \(A - B) is a positive constant. |
||
7 | |||
8 | !if $wims_read_parm iswordof form check |
||
9 | !goto $wims_read_parm |
||
10 | !endif |
||
11 | |||
12 | !exit |
||
13 | :form |
||
14 | Introduce an obvious inequality |
||
5763 | bpr | 15 | <input size=12 name=methparm1 value="$methparm1"/> |
20 | reyssat | 16 | !formselect methparm2 from 1 to 4 prompt <,>,<=,>= |
5763 | bpr | 17 | <input size=12 name=methparm3 value="$methparm3"/> |
20 | reyssat | 18 | !set methremark=Your inequality must be obviously true after simple\ |
19 | arithmetics. |
||
20 | |||
21 | !exit |
||
22 | :check |
||
23 | sign=!item $methparm2 of <,>,<=,>= |
||
24 | !read deduc/sub/checkineq ($methparm1) - ($methparm3),$sign,0 |
||
25 | !if $out!=true |
||
26 | !if $out=false |
||
27 | error=Your inequality is not true! |
||
28 | !advance penalty |
||
29 | !else |
||
30 | error=unjustified |
||
31 | !endif |
||
32 | !exit |
||
33 | !endif |
||
34 | |||
35 | newobject0=$methparm1 $sign $methparm3 |
||
36 | oldobject=0 |
||
37 | methexp=Obvious inequality |
||
38 | |||
39 | !exit |
||
40 |