From 7ab9f85931a2d0573ea3eb48329355030be63199 Mon Sep 17 00:00:00 2001 From: Mahrud Sayrafi Date: Mon, 5 Aug 2024 19:02:20 +0200 Subject: [PATCH] removed FirstPackage stuff from Polymake.m2 --- M2/Macaulay2/packages/Polymake.m2 | 47 ------------------------------- 1 file changed, 47 deletions(-) diff --git a/M2/Macaulay2/packages/Polymake.m2 b/M2/Macaulay2/packages/Polymake.m2 index 7c8e3cd7ae..a908ed8d02 100644 --- a/M2/Macaulay2/packages/Polymake.m2 +++ b/M2/Macaulay2/packages/Polymake.m2 @@ -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); @@ -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";