Skip to content

Commit

Permalink
moved compositums before the documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
kschwede committed Jun 12, 2024
1 parent a70dd93 commit 5b60567
Showing 1 changed file with 32 additions and 27 deletions.
59 changes: 32 additions & 27 deletions NumberFields/NumberFields.m2
Original file line number Diff line number Diff line change
Expand Up @@ -382,33 +382,9 @@ minimalPolynomial(List) := opts -> L1 -> (
apply(L1, i -> minimalPolynomial(i))
)


--*****************************
--Documentation
--*****************************
beginDocumentation()

doc ///
Node
Key
NumberFields
Headline
an example Macaulay2 package
Description
Text
{\em FirstPackage} is a basic package to be used as an example.
///

--*****************************
--Tests
--*****************************

TEST /// --Test #0
K = QQ[x]/ideal(x^3-2)
L = K[y]/ideal(y^2 + y + 1)
assert(degree numberField K == 3)
assert(degree numberField L == 6)
///
--********************************
--******Compositums
--********************************

asExtensionOfBase = method(Options => {})
asExtensionOfBase(NumberFieldExtension) := opts -> iota -> (
Expand Down Expand Up @@ -457,6 +433,35 @@ compositums(NumberField,NumberField) := opts -> (K1,K2) -> (
infoList
)


--*****************************
--Documentation
--*****************************
beginDocumentation()

doc ///
Node
Key
NumberFields
Headline
an example Macaulay2 package
Description
Text
{\em FirstPackage} is a basic package to be used as an example.
///

--*****************************
--Tests
--*****************************

TEST /// --Test #0
K = QQ[x]/ideal(x^3-2)
L = K[y]/ideal(y^2 + y + 1)
assert(degree numberField K == 3)
assert(degree numberField L == 6)
///


--compositums(NumberFieldExtenison,NumberFieldExtension) := opts -> (iota,kappa) -> (
-- -- check for common base
-- -- write iota and kappa as entensions of common base
Expand Down

0 comments on commit 5b60567

Please sign in to comment.