Rev 11520 | Rev 11545 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 11520 | Rev 11530 | ||
---|---|---|---|
Line -... | Line 1... | ||
- | 1 | ||
1 | :Tipus de variables |
2 | :Tipus de variables |
2 | :Tipus,Exemple,Significat |
3 | :Tipus,Exemple,Significat |
3 | :real |
4 | :real |
4 | \real{x=random(-5..5)} |
5 | \real{x=random(-5..5)} |
5 | \x és un nombre real aleatori entre -5 i 5 |
6 | \x és un nombre real aleatori entre -5 i 5 |
6 | :complex |
7 | :complex |
7 | \complex{z=(1+2*i)^3} |
8 | \complex{z=(1+2*i)^3} |
8 | \z |
9 | \z és el nombre complex z=(1+2*i)^3 |
9 | :text |
10 | :text |
10 | \text{a=1 2 3} |
11 | \text{a=1 2 3} |
11 | \a |
12 | \a és el text donat sense cap transformació |
12 | :integer |
13 | :integer |
13 | \integer{n=3*exp(\a)} |
14 | \integer{n=3*exp(\a)} |
14 | \n |
15 | \n és l'enter més proper a 3*e<sup>\a</sup> (depèn del valor de \a) |
15 | :rational |
16 | :rational |
16 | \rational{x=2*5/6} |
17 | \rational{x=2*5/6} |
17 | \x |
18 | \x és el nombre racional (exacte) 5/3 |
18 | :function |
19 | :function |
19 | \function{f=2*x^2} |
20 | \function{f=2*x^2} |
20 | la |
21 | la funció 2 x^2 |
21 | :matrix |
22 | :matrix |
22 | \matrix{m=1,2,3<br/>4,5,6<br/>7,8,9} |
23 | \matrix{m=1,2,3<br/>4,5,6<br/>7,8,9} |
23 | \m |
24 | \m és la matriu de 3 files i 3 columnes. |