Subversion Repositories wimsdev

Rev

Rev 17513 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 17513 Rev 18096
Line 2... Line 2...
2
:Type,Example,Signification
2
:Type,Example,Signification
3
:real
3
:real
4
\real{x=random(-5..5)}
4
\real{x=9.1^9+6^8}
5
\x is a random real number between -5 and 5
5
\x is a real number rounded to 8 significant digits. For more precision, use pari or maxima with the text type: \text{a=pari(9.1^9+6^8)}
6
:complex
6
:complex
7
\complex{z=(1+2*i)^3}
7
\complex{z=(1+2*i)^3}
8
\z is the complex number z=(1+2*i)^3
8
\z is the complex number z=(1+2*i)^3
9
:text
9
:text
10
\text{a=1 2  3}
10
\text{a=1 2  3}
11
\a is the text without any transformation
11
\a is the text without any transformation
12
:integer
12
:integer
13
\integer{n=3*exp(\a)}
13
\integer{n=3*exp(\a)}
14
\n is the nearest integer from 3*e<sup>\a</sup>
14
\n is the integer closest to 3*e<sup>\a</sup> (it depends on the value of \a and is calculated first as real, so with 8 significant digits only)
15
:rational
15
:rational
16
\rational{x=2*5/6}
16
\rational{x=2*5/6}
17
\x is the (exact) rational number 5/3
17
\x is the (exact) rational number 5/3
18
:function
18
:function
19
\function{f=2*x^2}
19
\function{f=2*x^2}