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