Skip to content

Commit

Permalink
removed FirstPackage stuff from Polymake.m2
Browse files Browse the repository at this point in the history
  • Loading branch information
mahrud committed Aug 5, 2024
1 parent 11a6797 commit 7ab9f85
Showing 1 changed file with 0 additions and 47 deletions.
47 changes: 0 additions & 47 deletions M2/Macaulay2/packages/Polymake.m2
Original file line number Diff line number Diff line change
Expand Up @@ -192,52 +192,8 @@ document {
}
end


document {
Key => {(firstFunction,ZZ),firstFunction},
Headline => "a silly first function",
Usage => "firstFunction n",
Inputs => { "n" },
Outputs => {{ "a silly string, depending on the value of ", TT "n" }},
SourceCode => {(firstFunction,ZZ)},
EXAMPLE lines ///
firstFunction 1
firstFunction 0
///
}

document {
Key => {(firstFunction,ZZ),firstFunction},
Headline => "a silly first function",
Usage => "firstFunction n",
Inputs => { "n" },
Outputs => {{ "a silly string, depending on the value of ", TT "n" }},
SourceCode => {(firstFunction,ZZ)},
EXAMPLE lines ///
firstFunction 1
firstFunction 0
///
}

document {
Key => {(firstFunction,ZZ),firstFunction},
Headline => "a silly first function",
Usage => "firstFunction n",
Inputs => { "n" },
Outputs => {{ "a silly string, depending on the value of ", TT "n" }},
SourceCode => {(firstFunction,ZZ)},
EXAMPLE lines ///
firstFunction 1
firstFunction 0
///
}

------------------------- TEST ---------------------------

TEST ///
assert ( firstFunction 2 == "D'oh!" )
///

readMat = method(TypicalValue => Matrix)
readMat(String,Ring) := (filename,R) -> (
ss := select(lines get filename, s -> length s > 0);
Expand All @@ -246,9 +202,6 @@ readMat(String,Ring) := (filename,R) -> (
select(t, x -> class x =!= Nothing))))
)

firstFunction = method(TypicalValue => String)
firstFunction ZZ := String => n -> if n == 1 then "Hello World!" else "D'oh!"

restart
loadPackage "Polymake"
filename = "/Users/bb/Desktop/3cube.poly";
Expand Down

0 comments on commit 7ab9f85

Please sign in to comment.