Rev 1044 | Rev 4091 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1044 | Rev 2449 | ||
---|---|---|---|
Line 40... | Line 40... | ||
40 | <p>$table_header |
40 | <p>$table_header |
41 | <caption>Some other examples of parameters |
41 | <caption>Some other examples of parameters |
42 | !href cmd=help&special_parm=$special_parm,oefparm#list [complete list] |
42 | !href cmd=help&special_parm=$special_parm,oefparm#list [complete list] |
43 | </caption> |
43 | </caption> |
44 | $table_hdtr<th>Definition<th>Effect |
44 | $table_hdtr<th>Definition<th>Effect |
45 | $table_tr<td><tt>\real{x=random(-5..5)} |
45 | $table_tr<td><tt>\real{x=random(-5..5)}</tt> |
46 | <td>\x will be a random real number<br>between -5 and 5 |
46 | <td>\x will be a random real number<br>between -5 and 5 |
47 | $table_tr<td><tt>\real{a=random(-5,-3,0.3,4)} |
47 | $table_tr<td><tt>\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 |
48 | <td>\a will be a real number taken randomly<br>among -5,-3,0.3 and 4 |
49 | $table_tr<td><tt>\complex{z=(1+2*i)^3} |
49 | $table_tr<td><tt>\complex{z=(1+2*i)^3}</tt> |
50 | <td>\z will be the complex number (1+2*i)^3 |
50 | <td>\z will be the complex number (1+2*i)^3 |
51 | $table_tr<td><tt>\text{sign=random(+,-)} |
51 | $table_tr<td><tt>\text{sign=random(+,-)}</tt> |
52 | <td>\sign will be a random sign: + ou - |
52 | <td>\sign will be a random sign: + ou - |
53 | $table_tr<td><tt>\integer{n=3*exp(\a)} |
53 | $table_tr<td><tt>\integer{n=3*exp(\a)}</tt> |
54 | <td>\n will be the closest integer to 3*e<sup>\a</sup> <br>(it depends on |
54 | <td>\n will be the closest integer to 3*e<sup>\a</sup> <br>(it depends on |
55 | the value of \a) |
55 | the value of \a) |
56 | $table_tr<td><tt>\function{f=random<br> (x^2+1,sin(x),log(x))} |
56 | $table_tr<td><tt>\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 |
57 | <td>\f will be a random function: either x^2+1,<br>or sin(x), or |
58 | log(x) |
58 | log(x) |
59 | $table_tr<td><tt>\real{a=evalue(x^2+sin(y),x=3,y=4)} |
59 | $table_tr<td><tt>\real{a=evalue(x^2+sin(y),x=3,y=4)}</tt> |
60 | <td>Evaluation of the function x^2+sin(y),<br> |
60 | <td>Evaluation of the function x^2+sin(y),<br> |
61 | for x=3, y=4 |
61 | for x=3, y=4 |
62 | $table_tr<td><tt>\real{r=solve(x^3-3*x+1,x=0..1)} |
62 | $table_tr<td><tt>\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 |
63 | <td>\r will the the simple root of x^3-3x+1 between 0 and 1 |
64 | $table_tr<td><tt>\function{h=simplify(x^5*y^3*x^2/y)} |
64 | $table_tr<td><tt>\function{h=simplify(x^5*y^3*x^2/y)}</tt> |
65 | <td>Simplified expression: x<sup>7</sup>y<sup>2</sup> |
65 | <td>Simplified expression: x<sup>7</sup>y<sup>2</sup> |
66 | $table_tr<td><tt>\function{g=diff(sin(x)+cos(y),x)} |
66 | $table_tr<td><tt>\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 |
67 | <td>\g will the the derivative of sin(x)+cos(y) with respect to x |
68 | $table_tr<td><tt>\function{F=int(x^2+3*x+1,x)} |
68 | $table_tr<td><tt>\function{F=int(x^2+3*x+1,x)}</tt> |
69 | <td>\F will an antiderivative of x^2+3*x+1,<br> |
69 | <td>\F will an antiderivative of x^2+3*x+1,<br> |
70 | the constant term being not garanteed to be always the same |
70 | the constant term being not garanteed to be always the same |
71 | !!$table_tr<td><tt>\function{F=int(t^2+3*t+1,t=1..x)} |
71 | !!$table_tr<td><tt>\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 |
72 | !! <td>\F will the antiderivative of x^2+3*x+1 with g(1)=0 |
73 | $table_tr<td><tt>\real{a=int(t^2+3*t+1,t=0..1)} |
73 | $table_tr<td><tt>\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 |
74 | <td>\a will the numerical integral of x^2+3*x+1 from 0 to 1 |
75 | $table_tr<td><tt>\text{f=htmlmath(2*x^2+3*x)} |
75 | $table_tr<td><tt>\text{f=htmlmath(2*x^2+3*x)}</tt> |
76 | <td>\f will be rendered in html as: 2x<sup>2</sup>+3x |
76 | <td>\f will be rendered in html as: 2x<sup>2</sup>+3x |
77 | $table_tr<td><tt>\text{f=texmath(2*x^2+3*x)} |
77 | $table_tr<td><tt>\text{f=texmath(2*x^2+3*x)}</tt> |
78 | <td>\f will be the TeX source for the expression. |
78 | <td>\f will be the TeX source for the expression. |
79 | $table_tr<td><tt>\integer{n=items(a,b,c,d,e,f)} |
79 | $table_tr<td><tt>\integer{n=items(a,b,c,d,e,f)}</tt> |
80 | <td>\n will be the number of items (here it is 6) in the list |
80 | <td>\n will be the number of items (here it is 6) in the list |
81 | {a,b,c,d,e,f} |
81 | {a,b,c,d,e,f} |
82 | $table_tr<td><tt>\text{i=item(3,a,b,c,d,e,f)} |
82 | $table_tr<td><tt>\text{i=item(3,a,b,c,d,e,f)}</tt> |
83 | <td>\i will be the item number 3 of the list |
83 | <td>\i will be the item number 3 of the list |
84 | {a,b,c,d,e,f} (hence c). |
84 | {a,b,c,d,e,f} (hence c). |
85 | $table_tr<td><tt>\text{s=shuffle(6)} |
85 | $table_tr<td><tt>\text{s=shuffle(6)}</tt> |
86 | <td>\s will be the list of 6 integers 1,2,...,6, in random order. |
86 | <td>\s will be the list of 6 integers 1,2,...,6, in random order. |
87 | $table_tr<td><tt>\text{s=shuffle(a,b,c,d,e)} |
87 | $table_tr<td><tt>\text{s=shuffle(a,b,c,d,e)}</tt> |
88 | <td>\s will be the letters {a,b,c,d,e} in random order. |
88 | <td>\s will be the letters {a,b,c,d,e} in random order. |
89 | $table_tr<td><tt>\matrix{m=1,2,3<br>4,5,6<br>7,8,9} |
89 | $table_tr<td><tt>\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. |
90 | <td>\m will be the matrix of 3 rows and 3 columns. |
91 | $table_tr<td><tt>\text{t=asis(How do you do? item(1,2,3))} |
91 | $table_tr<td><tt>\text{t=asis(How do you do? item(1,2,3))}</tt> |
92 | <td>The string as it is, with no transformation nor conditionality. |
92 | <td>The string as it is, with no transformation nor conditionality. |
93 | 93 | ||
94 | $table_end <p> |
94 | $table_end <p> |
95 | 95 | ||
96 | Conditional parameters: You may write<p> |
96 | Conditional parameters: You may write<p> |