Rev 5763 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5763 | Rev 16321 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | !set |
1 | !set methtit=Suma de ecuaciones con coeficientes |
2 | !set methparmtype=parm equation >,parm equation >,\ |
2 | !set methparmtype=parm equation >,parm equation >,\ |
3 | number, number, choice 2 |
3 | number, number, choice 2 |
4 | !set methparmrelax=5 |
4 | !set methparmrelax=5 |
5 | !set |
5 | !set methhelp=Este método calcula la suma con los coeficientes de dos ecuaciones.\ |
6 |
|
6 | El resultado puede agregarse a las suposiciones o reemplazar\ |
7 |
|
7 | una de las dos ecuaciones iniciales. |
8 | 8 | ||
9 | !if $wims_read_parm iswordof form check |
9 | !if $wims_read_parm iswordof form check |
10 | !goto $wims_read_parm |
10 | !goto $wims_read_parm |
11 | !endif |
11 | !endif |
12 | 12 | ||
13 | !exit |
13 | !exit |
14 | :form |
14 | :form |
15 |
|
15 | Introducir una nueva ecuación que es <br/> |
16 | !default methparm3=1 |
16 | !default methparm3=1 |
17 | !default methparm4=1 |
17 | !default methparm4=1 |
18 | !read deduc/methparm.phtml 3,5 |
18 | !read deduc/methparm.phtml 3,5 |
19 |
|
19 | veces la ecuacion |
20 | !read deduc/methparm.phtml 1 |
20 | !read deduc/methparm.phtml 1 |
21 | <br/> plus |
21 | <br/> plus |
22 | !read deduc/methparm.phtml 4,5 |
22 | !read deduc/methparm.phtml 4,5 |
23 |
|
23 | veces la ecuacion |
24 | !read deduc/methparm.phtml 2 |
24 | !read deduc/methparm.phtml 2 |
25 | <br/> |
25 | <br/> |
26 |
|
26 | Esta nueva ecuación va a |
27 | !formselect methparm5 list 0,1,2 prompt \ |
27 | !formselect methparm5 list 0,1,2 prompt \ |
28 |
|
28 | añadirse a los supuestos,\ |
29 |
|
29 | reemplazar al primero,\ |
30 |
|
30 | reemplazar al segundo |
31 | !exit |
31 | !exit |
32 | :check |
32 | :check |
33 | !ifval $methparm3=0 and $methparm4=0 |
33 | !ifval $methparm3=0 and $methparm4=0 |
34 |
|
34 | error=¡Los coeficientes son cero! |
35 | !exit |
35 | !exit |
36 | !endif |
36 | !endif |
37 | !ifval ($methparm=1 and $methparm3=0) or \ |
37 | !ifval ($methparm=1 and $methparm3=0) or \ |
38 | ($methparm=2 and $methparm4=0) |
38 | ($methparm=2 and $methparm4=0) |
39 |
|
39 | error=¿Quieres reemplazar una ecuación cuyo coeficiente en\ |
40 |
|
40 | la suma es cero? ¡Esto hará que pierdas\ |
41 |
|
41 | información! |
42 | !advance penalty |
42 | !advance penalty |
43 | !exit |
43 | !exit |
44 | !endif |
44 | !endif |
45 | !distribute items $methparmobj1 into data1,left1,sign1,right1 |
45 | !distribute items $methparmobj1 into data1,left1,sign1,right1 |
46 | !distribute items $methparmobj2 into data2,left2,sign2,right2 |
46 | !distribute items $methparmobj2 into data2,left2,sign2,right2 |
47 | !if $data1 issametext $data2 |
47 | !if $data1 issametext $data2 |
48 |
|
48 | error=Este método prohíbe la suma de una ecuación consigo misma. |
49 | !exit |
49 | !exit |
50 | !endif |
50 | !endif |
51 | methexp=\(($methparm3)*($left1 $sign1 $right1) + ($methparm4)*($left2 $sign2 $right2)) |
51 | methexp=\(($methparm3)*($left1 $sign1 $right1) + ($methparm4)*($left2 $sign2 $right2)) |
52 | 52 | ||
53 | !read deduc/sub/simplify ($methparm3)*($left1) + ($methparm4)*($left2)\ |
53 | !read deduc/sub/simplify ($methparm3)*($left1) + ($methparm4)*($left2)\ |