本帖最后由 lilianjie 于 2012-1-4 17:59 编辑 6 {4 |4 X L+ `9 G% p$ q! g' {
5 O" f' z& s2 @4 d4 ]+ x! Y
Q5:=QuadraticField(5) ;/ s1 T9 O! s \. F4 j( C- _
Q5;! m: X$ S) ~% o5 |* O
Q<w> :=PolynomialRing(Q5);Q; , g9 q2 t) r5 i0 x0 Y( h- W5 P2 L % d! ]6 H3 f& t& oEquationOrder(Q5);# \' L X: s7 o1 ^. U1 [
M:=MaximalOrder(Q5) ; $ g n- I$ r! M. b( t. G" }M;" l7 Q w7 O' G; |
NumberField(M); 1 s1 d- x: C: M# {$ wS1:=sub< M | 1 >;S2:=sub< M | 2 >;S3:=sub< M | 3 >;S4:=sub< M | 4 >;S5:=sub< M | 5 >;S25:=sub< M | 25 >;S625888888:=sub< M | 625888888 >;S625888888;4 q9 O3 G+ C9 I3 ~& e K
IsQuadratic(Q5);IsQuadratic(S1);IsQuadratic(S4);IsQuadratic(S25);IsQuadratic(S625888888); 4 j8 y+ _! C0 SFactorization(w^2-3);1 \" I- J# {9 F4 G' M
Discriminant(Q5) ; ( Q9 a+ ^( R4 C8 HFundamentalUnit(Q5) ;. K% O d! `% W) Y- `! m
FundamentalUnit(M);: i, r4 W! Z8 E/ V
Conductor(Q5) ;7 V9 H1 q0 r1 `* n) y3 }
Name(Q5, 1);2 o1 o& W. A0 @! X+ o
Name(M, 1);9 s# K- X; A" \+ Q! a( `& P
Conductor(M); ' y% R3 k& C; M$ s9 Y( N8 k9 F' ?ClassGroup(Q5) ; i5 ?* Q# q) r4 s: H; W3 P2 K( o
ClassGroup(M);9 u2 V5 }4 E1 e. y# K- u
ClassNumber(Q5) ;9 I0 @* E; g# J! C& I
ClassNumber(M) ;2 X5 e C( J) g% I2 F1 Y I
" i8 f* |6 m' S' Q3 S9 d" g
PicardGroup(M) ; % B8 e( T$ T4 \! x( T* C5 ]5 M! fPicardNumber(M) ; 7 k/ b9 w! Y* \- N ! Q5 w! e% e9 W. ` 3 ^" g8 `% v9 M# w; z/ X4 Y( T' EQuadraticClassGroupTwoPart(Q5);& H$ s8 m1 F3 t1 f! g
QuadraticClassGroupTwoPart(M); * d, v8 F2 P' R& o/ A7 \ " h- u) ?8 G; o, _2 o2 Q3 s' T; Q- u% O; f; P% @- s7 G
NormEquation(Q5, 5) ; 4 e' J8 x0 A% z- iNormEquation(M, 5) ; 1 H: n) u- y4 U1 z, I% Y, L& [% y; Y' }! v( b
: ~. `8 `3 T! C ^/ L% `. {Quadratic Field with defining polynomial $.1^2 - 5 over the Rational Field D" f, g$ {5 S: n1 o: X5 @" Z# {/ g
Univariate Polynomial Ring in w over Q56 t8 H k1 U! _0 w& R. Q
Equation Order of conductor 2 in Q5 5 J5 y3 Z4 V! C8 d; U9 C& RMaximal Order of Q5% g6 Y$ }& n$ l; y4 L# }
Quadratic Field with defining polynomial $.1^2 - 5 over the Rational Field* W. x `0 L7 H( W1 u
Order of conductor 625888888 in Q5. e, r2 T( h0 O3 d- C( [8 ]* f7 w
true Quadratic Field with defining polynomial $.1^2 - 5 over the Rational Field) `) o( j4 g+ A3 K; H9 @ e+ n5 B
true Maximal Order of Q5 0 b+ u8 i# S% e( @; Xtrue Order of conductor 16 in Q5 1 M/ u# ]& a5 c$ c" e: wtrue Order of conductor 625 in Q56 o5 e$ f; T# [! L5 T
true Order of conductor 391736900121876544 in Q5 8 f0 g8 N+ ?% J+ W[ * v4 |% x& y! G- ]4 f U {* \ <w^2 - 3, 1> + M7 F3 H7 Z6 W4 w5 L8 r( S; ~/ f] 4 S: `* i# Z3 {. ?3 U55 g8 G) r7 s( c3 ?
1/2*(-Q5.1 + 1) % r+ j' R' |7 U9 S9 Y. ^! D3 J% e+ P1 s-$.2 + 12 t$ Y' j+ L( `6 S# n
5 I H6 y, a6 o( h% Y( R# t2 \# H8 KQ5.18 `1 T: M7 d: ?* T P
$.2 0 a% l& \! w6 ?. p' D& d- t1" I3 y( v% v, b5 j4 i/ P, }
Abelian Group of order 1 + o: |- ]; D3 O+ x8 V& KMapping from: Abelian Group of order 1 to Set of ideals of M' c5 g/ c/ u5 w* h# ~: O6 p! q
Abelian Group of order 1 9 L% t. T* \) R) M8 \Mapping from: Abelian Group of order 1 to Set of ideals of M/ m; G" }) G( V0 x# L, @7 u
1 % a5 F3 H: w4 D1 B/ K14 N: H9 W i$ W2 c0 k& u# P
Abelian Group of order 1) ^- ?8 l1 M1 b) _/ [" x/ |. q3 S3 m
Mapping from: Abelian Group of order 1 to Set of ideals of M given by a rule [no 1 i! S, m. Y7 d7 o2 m" Ainverse]8 C! W1 X2 S& r& A" ^0 I
1 U/ l+ [. M p" o/ V1 D
Abelian Group of order 1 5 `' ]' D# w% P2 H" l$ n% c$ r# o* xMapping from: Abelian Group of order 1 to Binary quadratic forms of discriminant : t" v: Q' S @ Q% W' Y5 given by a rule [no inverse]6 m" i4 R9 E3 ]/ {. O7 z
Abelian Group of order 1 9 T( o7 K% |* V; LMapping from: Abelian Group of order 1 to Binary quadratic forms of discriminant : |' d/ A, c' @, {/ o+ @+ {9 r; U5 given by a rule [no inverse] : k8 k" w2 m4 C. s" ztrue [ 1/2*(Q5.1 + 5) ]# J' J) ?/ G$ B3 m" K
true [ -2*$.2 + 1 ]; Y8 ~; Q* r b- A4 i, z2 c
}, b9 n2 p$ z! i1 e* v1 K6 F: h! [1 |9 M7 h0 e5 l
8 ~% Y# R1 U' l0 `! q; } % }6 W$ o1 U. y4 ^: o# |6 M1 G( G ; l5 \6 l5 D4 O3 [5 @( j* d 1 g+ W3 p+ O4 z, N3 `: G$ a, x+ m' ?1 c' N- h+ S
2 y+ ]# l, i% X& N# s# I
# s9 N5 O+ v: L- b. D6 r1 r" K& G3 V0 k1 t s! ^* g4 }
& k5 X- O! a# {Q<w> :=PolynomialRing(Q5);Q; 1 P5 i, D+ g/ a# U$ X$ r7 s* oEquationOrder(Q5);& j+ n" u4 m. y" P
M:=MaximalOrder(Q5) ; ) |) g2 A( K# I0 AM;( s: I) y/ x( o+ s, W7 s* h
NumberField(M);: f, x8 q& @8 }, L3 R9 V' A
S1:=sub< M | 1 >;S2:=sub< M | 2 >;S3:=sub< M | 3 >;S4:=sub< M | 4 >;S5:=sub< M | 5 >;S25:=sub< M | 25 >;S625888888:=sub< M | 625888888 >;S625888888;4 |3 t5 I4 q# E
IsQuadratic(Q5); # Z5 v: u- i) l" `1 C6 hIsQuadratic(S1); * ^+ q D% l; k. bIsQuadratic(S4); ( T) o! {; @; {3 u! j' SIsQuadratic(S25);; L: ~) l, L6 F0 T' W& ~
IsQuadratic(S625888888);' e; \2 C7 X! p' J7 v
Factorization(w^2-50); ' K' n( j m. N" i" `Discriminant(Q5) ; p6 A7 Z/ W/ L3 q3 \ C
FundamentalUnit(Q5) ; f( `. s+ [, A, }# }% ?
FundamentalUnit(M);% z; W$ |) i6 _0 R1 j" B$ [
Conductor(Q5) ; 7 U9 l4 m7 l# w3 K7 E! @6 L C$ ?. h: O' q d: A7 i
Name(M, 50); 0 _5 P" a; z% ^/ M. O8 ]9 lConductor(M);- N& y; t( T- D8 s& v5 w
ClassGroup(Q5) ; 4 q: N0 j" H( L2 y
ClassGroup(M);% v y" X! t- N3 t9 f/ b
ClassNumber(Q5) ;; a9 A3 Z- ?/ Z
ClassNumber(M) ; 9 F. h- R: `2 x- |5 FPicardGroup(M) ;& X2 L. G' ]7 B8 v
PicardNumber(M) ;! b6 ?* o G& N' R; B/ b% f6 X
: h# S& `/ e5 l
QuadraticClassGroupTwoPart(Q5);0 P! D2 u+ h, D0 {( c: k! e. \
QuadraticClassGroupTwoPart(M); u& Q% _/ Z( r8 r
NormEquation(Q5, 50) ;0 X4 @3 j/ {) e) q" @9 u
NormEquation(M, 50) ; * E/ d* _4 x6 V" c% o2 w& V0 p: k# }$ M" k x
Quadratic Field with defining polynomial $.1^2 - 2 over the Rational Field 3 p9 h6 P- c! Y$ {* qUnivariate Polynomial Ring in w over Q5- U& w4 m( R/ v8 H5 [( Q+ T: q; Y
Equation Order of conductor 1 in Q5$ ]* y) a% U$ V$ v
Maximal Equation Order of Q5* n0 [! L1 i' _, T2 J/ x
Quadratic Field with defining polynomial $.1^2 - 2 over the Rational Field % w" f) d4 j$ d" i0 j9 h8 kOrder of conductor 625888888 in Q5% O( w- M6 X7 R! {, L8 y4 s
true Quadratic Field with defining polynomial $.1^2 - 2 over the Rational Field + N C2 o* T, h6 mtrue Maximal Equation Order of Q5/ k9 L" W$ D2 _. h7 I9 W
true Order of conductor 1 in Q5 ! W8 B9 o3 @# }" Otrue Order of conductor 1 in Q54 M5 ], _4 I2 A" u* a6 ]
true Order of conductor 1 in Q5" k( @7 ?" D7 O1 v
[ L2 k! X A& M <w - 5*Q5.1, 1>, 6 |- e7 J- [; D8 Y& W' a# P <w + 5*Q5.1, 1>" h" S3 A7 @! u0 n/ E
]2 T4 g" j& y, E2 Y% z
8* a" l1 |9 h& Y& }; W% S" _
Q5.1 + 1 1 o) @+ |3 g5 W$ G1 i' A& E0 U$.2 + 1 8 Q1 F. P. C# V; e8$ I! W7 p* g: k) z3 T9 k3 B# k0 S/ J
& e3 y1 I- _, k4 I( X7 k/ s. @0 U>> Name(M, 50);5 u4 R1 S$ C0 S: c& F/ n$ Z
^ z' d( W/ { {; O4 ^' T% X+ K
Runtime error in 'Name': Argument 2 (50) should be in the range [1 .. 1]2 B5 ^3 ^, d, _1 A w" o7 ?
% A* u$ s6 l. X; v% M1 ; U8 B& U( g* p$ ZAbelian Group of order 1& n' h+ D" `7 y% \& i7 n1 a
Mapping from: Abelian Group of order 1 to Set of ideals of M 1 I3 e% h) b1 D8 Q) tAbelian Group of order 1 8 c/ {9 q1 G; A6 bMapping from: Abelian Group of order 1 to Set of ideals of M4 T' L0 w1 W3 M: _
1. l( f; t% u3 }# v
13 \2 B- x9 q% P# \5 p: E/ a4 a
Abelian Group of order 1 5 C) o* }: U3 j% G3 N# @' K' |4 e, gMapping from: Abelian Group of order 1 to Set of ideals of M given by a rule [no5 r) ^! ]9 h7 Y) A- ^# ^- ?
inverse]' s$ u" x6 ]5 C! y5 Q6 A. L
14 U5 u* D. G, j5 O
Abelian Group of order 1 3 W. I" { n8 K" {7 y% ^" IMapping from: Abelian Group of order 1 to Binary quadratic forms of discriminant- l" x2 v' D# L% z8 E
8 given by a rule [no inverse]4 r; x! j, ~9 a; n* b, B2 c q
Abelian Group of order 13 Q1 A2 K( K' a% m# `2 o& L
Mapping from: Abelian Group of order 1 to Binary quadratic forms of discriminant * I: v( S4 `. j5 g9 A: e8 given by a rule [no inverse] ; @3 F' I8 o+ z( i5 s" htrue [ 5*Q5.1 + 10 ] # T2 E$ y5 M. ]# htrue [ -5*$.2 ]