EB( n ) F
EC( n ) F
ED( n ) F
EE( n ) F
EF( n ) F
EG( n ) F
EH( n ) F
For N a positive integer, let z = E(N ) = e2 pi / N. The following so-called atomic irrationalities (see Chapter 7, Section 10 of CCN85) can be entered using functions. (Note that the values are not necessary irrational.)
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
(Note that in cN, ¼, hN, N must be a prime.)
EI( n ) F
ER( n ) F
For a rational number N, ER returns the square root Ö{N }
of N, and EI returns Ö{-N }.
By the chosen embedding of cyclotomic fields into the complex numbers,
ER returns the positive square root if N is positive,
and if N is negative then ER(N) = EI(-N).
In any case, EI(N) = E(4) * ER(N).
ER is installed as method for the operation Sqrt (see Sqrt) for
rational argument.
From a theorem of Gauss we know that
| |||||||||||||||||||||||
EY( n[, d] ) F
EX( n[, d] ) F
EW( n[, d] ) F
EV( n[, d] ) F
EU( n[, d] ) F
ET( n[, d] ) F
ES( n[, d] ) F
For given N, let nk = nk(N) be the first integer with multiplicative order exactly k modulo N, chosen in the order of preference
|
We define
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
EM( n[, d] ) F
EL( n[, d] ) F
EK( n[, d] ) F
EJ( n[, d] ) F
| |||||||||||||||||||||||||||||||||||||||||||||||
NK( n, k, d ) F
Let nk(d) = nk(d)(N) be the d+1-th integer with
multiplicative order exactly k modulo N, chosen in the order of
preference defined above; we write
nk = nk(0),nk¢ = nk(1), nk¢¢ = nk(2)
and so on.
These values can be computed as NK(N,k,d) = nk(d)(N);
if there is no integer with the required multiplicative order,
NK returns fail.
The algebraic numbers
|
| |||||||||||||||||||||||
gap> EW(16,3); EW(17,2); ER(3); EI(3); EY(5); EB(9); 0 E(17)+E(17)^4+E(17)^13+E(17)^16 -E(12)^7+E(12)^11 E(3)-E(3)^2 E(5)+E(5)^4 1
[Top] [Previous] [Up] [Next] [Index]
GAP 4 manual