Rev 4091 | Rev 5903 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4091 | Rev 5755 | ||
---|---|---|---|
Line 25... | Line 25... | ||
25 | Compute the multiplication of \x1 by \y1. |
25 | Compute the multiplication of \x1 by \y1. |
26 | </pre> |
26 | </pre> |
27 | in the statement of the exercise. Suppose that for a certain request of |
27 | in the statement of the exercise. Suppose that for a certain request of |
28 | the exercise, a random value <font color="red">-7</font> |
28 | the exercise, a random value <font color="red">-7</font> |
29 | is attributed to \x1. Then the following parameter \y1 will take the value |
29 | is attributed to \x1. Then the following parameter \y1 will take the value |
30 | -4, and the statement of the exercise will be presented under the form< |
30 | -4, and the statement of the exercise will be presented under the form <div class="wimscenter">Compute the multiplication of -7 by -4. |
31 | <center>Compute the multiplication of -7 by -4. |
- | |
32 | </ |
31 | </div> |
33 | You may then define a numerical reply in the name of <tt>The product</tt>, |
32 | You may then define a numerical reply in the name of <tt>The product</tt>, |
34 | having for the good solution <tt class="wims_code_words">(\x1)*(\y1)</tt>. (Remark that here |
33 | having for the good solution <tt class="wims_code_words">(\x1)*(\y1)</tt>. (Remark that here |
35 | the parentheses are necessary, because the substitution is done literarily.) |
34 | the parentheses are necessary, because the substitution is done literarily.) |
36 | <a name="list"></a> |
35 | <a name="list"></a> |
37 | !if oefparm isitemof $special_parm |
36 | !if oefparm isitemof $special_parm |
Line 41... | Line 40... | ||
41 | <caption>Some other examples of parameters |
40 | <caption>Some other examples of parameters |
42 | !href cmd=help&special_parm=$special_parm,oefparm#list [complete list] |
41 | !href cmd=help&special_parm=$special_parm,oefparm#list [complete list] |
43 | </caption> |
42 | </caption> |
44 | $table_hdtr<th>Definition<th>Effect |
43 | $table_hdtr<th>Definition<th>Effect |
45 | $table_tr<td><tt class="wims_code_words">\real{x=random(-5..5)}</tt> |
44 | $table_tr<td><tt class="wims_code_words">\real{x=random(-5..5)}</tt> |
46 | <td>\x will be a random real number<br>between -5 and 5 |
45 | <td>\x will be a random real number<br/>between -5 and 5 |
47 | $table_tr<td><tt class="wims_code_words">\real{a=random(-5,-3,0.3,4)}</tt> |
46 | $table_tr<td><tt class="wims_code_words">\real{a=random(-5,-3,0.3,4)}</tt> |
48 | <td>\a will be a real number taken randomly<br>among -5,-3,0.3 and 4 |
47 | <td>\a will be a real number taken randomly<br/>among -5,-3,0.3 and 4 |
49 | $table_tr<td><tt class="wims_code_words">\complex{z=(1+2*i)^3}</tt> |
48 | $table_tr<td><tt class="wims_code_words">\complex{z=(1+2*i)^3}</tt> |
50 | <td>\z will be the complex number (1+2*i)^3 |
49 | <td>\z will be the complex number (1+2*i)^3 |
51 | $table_tr<td><tt class="wims_code_words">\text{sign=random(+,-)}</tt> |
50 | $table_tr<td><tt class="wims_code_words">\text{sign=random(+,-)}</tt> |
52 | <td>\sign will be a random sign: + ou - |
51 | <td>\sign will be a random sign: + ou - |
53 | $table_tr<td><tt class="wims_code_words">\integer{n=3*exp(\a)}</tt> |
52 | $table_tr<td><tt class="wims_code_words">\integer{n=3*exp(\a)}</tt> |
54 | <td>\n will be the closest integer to 3*e<sup>\a</sup> <br>(it depends on |
53 | <td>\n will be the closest integer to 3*e<sup>\a</sup> <br/>(it depends on |
55 | the value of \a) |
54 | the value of \a) |
56 | $table_tr<td><tt class="wims_code_words">\function{f=random<br> (x^2+1,sin(x),log(x))}</tt> |
55 | $table_tr<td><tt class="wims_code_words">\function{f=random<br/> (x^2+1,sin(x),log(x))}</tt> |
57 | <td>\f will be a random function: either x^2+1,<br>or sin(x), or |
56 | <td>\f will be a random function: either x^2+1,<br/>or sin(x), or |
58 | log(x) |
57 | log(x) |
59 | $table_tr<td><tt class="wims_code_words">\real{a=evalue(x^2+sin(y),x=3,y=4)}</tt> |
58 | $table_tr<td><tt class="wims_code_words">\real{a=evalue(x^2+sin(y),x=3,y=4)}</tt> |
60 | <td>Evaluation of the function x^2+sin(y),<br> |
59 | <td>Evaluation of the function x^2+sin(y),<br/> |
61 | for x=3, y=4 |
60 | for x=3, y=4 |
62 | $table_tr<td><tt class="wims_code_words">\real{r=solve(x^3-3*x+1,x=0..1)}</tt> |
61 | $table_tr<td><tt class="wims_code_words">\real{r=solve(x^3-3*x+1,x=0..1)}</tt> |
63 | <td>\r will the the simple root of x^3-3x+1 between 0 and 1 |
62 | <td>\r will the the simple root of x^3-3x+1 between 0 and 1 |
64 | $table_tr<td><tt class="wims_code_words">\function{h=simplify(x^5*y^3*x^2/y)}</tt> |
63 | $table_tr<td><tt class="wims_code_words">\function{h=simplify(x^5*y^3*x^2/y)}</tt> |
65 | <td>Simplified expression: x<sup>7</sup>y<sup>2</sup> |
64 | <td>Simplified expression: x<sup>7</sup>y<sup>2</sup> |
66 | $table_tr<td><tt class="wims_code_words">\function{g=diff(sin(x)+cos(y),x)}</tt> |
65 | $table_tr<td><tt class="wims_code_words">\function{g=diff(sin(x)+cos(y),x)}</tt> |
67 | <td>\g will the the derivative of sin(x)+cos(y) with respect to x |
66 | <td>\g will the the derivative of sin(x)+cos(y) with respect to x |
68 | $table_tr<td><tt class="wims_code_words">\function{F=int(x^2+3*x+1,x)}</tt> |
67 | $table_tr<td><tt class="wims_code_words">\function{F=int(x^2+3*x+1,x)}</tt> |
69 | <td>\F will an antiderivative of x^2+3*x+1,<br> |
68 | <td>\F will an antiderivative of x^2+3*x+1,<br/> |
70 | the constant term being not garanteed to be always the same |
69 | the constant term being not garanteed to be always the same |
71 | !!$table_tr<td><tt class="wims_code_words">\function{F=int(t^2+3*t+1,t=1..x)} |
70 | !!$table_tr<td><tt class="wims_code_words">\function{F=int(t^2+3*t+1,t=1..x)} |
72 | !! <td>\F will the antiderivative of x^2+3*x+1 with g(1)=0 |
71 | !! <td>\F will the antiderivative of x^2+3*x+1 with g(1)=0 |
73 | $table_tr<td><tt class="wims_code_words">\real{a=int(t^2+3*t+1,t=0..1)}</tt> |
72 | $table_tr<td><tt class="wims_code_words">\real{a=int(t^2+3*t+1,t=0..1)}</tt> |
74 | <td>\a will the numerical integral of x^2+3*x+1 from 0 to 1 |
73 | <td>\a will the numerical integral of x^2+3*x+1 from 0 to 1 |
Line 84... | Line 83... | ||
84 | {a,b,c,d,e,f} (hence c). |
83 | {a,b,c,d,e,f} (hence c). |
85 | $table_tr<td><tt class="wims_code_words">\text{s=shuffle(6)}</tt> |
84 | $table_tr<td><tt class="wims_code_words">\text{s=shuffle(6)}</tt> |
86 | <td>\s will be the list of 6 integers 1,2,...,6, in random order. |
85 | <td>\s will be the list of 6 integers 1,2,...,6, in random order. |
87 | $table_tr<td><tt class="wims_code_words">\text{s=shuffle(a,b,c,d,e)}</tt> |
86 | $table_tr<td><tt class="wims_code_words">\text{s=shuffle(a,b,c,d,e)}</tt> |
88 | <td>\s will be the letters {a,b,c,d,e} in random order. |
87 | <td>\s will be the letters {a,b,c,d,e} in random order. |
89 | $table_tr<td><tt class="wims_code_words">\matrix{m=1,2,3<br>4,5,6<br>7,8,9}</tt> |
88 | $table_tr<td><tt class="wims_code_words">\matrix{m=1,2,3<br/>4,5,6<br/>7,8,9}</tt> |
90 | <td>\m will be the matrix of 3 rows and 3 columns. |
89 | <td>\m will be the matrix of 3 rows and 3 columns. |
91 | $table_tr<td><tt class="wims_code_words">\text{t=asis(How do you do? item(1,2,3))}</tt> |
90 | $table_tr<td><tt class="wims_code_words">\text{t=asis(How do you do? item(1,2,3))}</tt> |
92 | <td>The string as it is, with no transformation nor conditionality. |
91 | <td>The string as it is, with no transformation nor conditionality. |
93 | 92 | ||
94 | $table_end <p> |
93 | $table_end <p> |