Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
| Download
GAP 4.8.9 installation with standard packages -- copy to your CoCalc project to get it
Project: cocalc-sagemath-dev-slelievre
Views: 418346#! @BeginChunk Demo example #! @BeginExample C := NmzCone(["integral_closure",[[2,1],[1,3]]]); #! <a Normaliz cone> NmzHasConeProperty(C,"HilbertBasis"); #! false NmzHasConeProperty(C,"SupportHyperplanes"); #! false NmzConeProperty(C,"HilbertBasis"); #! [ [ 1, 1 ], [ 1, 2 ], [ 1, 3 ], [ 2, 1 ] ] NmzHasConeProperty(C,"SupportHyperplanes"); #! true NmzConeProperty(C,"SupportHyperplanes"); #! [ [ -1, 2 ], [ 3, -1 ] ] #! @EndExample #! @EndChunk #! @BeginChunk Demo example equation #! @BeginExample D := NmzCone(["equations",[[1,2,-3]], "grading",[[0,-1,3]]]); #! <a Normaliz cone> NmzCompute(D,["DualMode","HilbertSeries"]); #! true NmzHilbertBasis(D); #! [ [ 1, 1, 1 ], [ 0, 3, 2 ], [ 3, 0, 1 ] ] NmzHilbertSeries(D); #! [ t^2-t+1, [ [ 1, 1 ], [ 3, 1 ] ] ] NmzHasConeProperty(D,"SupportHyperplanes"); #! true NmzSupportHyperplanes(D); #! [ [ 1, 0, 0 ], [ 1, 3, -3 ] ] NmzEquations(D); #! [ [ 1, 2, -3 ] ] #! @EndExample #! @EndChunk #! @BeginChunk Demo example inhom equation #! @BeginExample P := NmzCone(["inhom_equations",[[1,2,-3,1]], "grading", [[1,1,1]]]); #! <a Normaliz cone> NmzIsInhomogeneous(C); #! false NmzIsInhomogeneous(P); #! true NmzHilbertBasis(P); #! [ [ 1, 1, 1, 0 ], [ 3, 0, 1, 0 ], [ 0, 3, 2, 0 ] ] NmzModuleGenerators(P); #! [ [ 0, 1, 1, 1 ], [ 2, 0, 1, 1 ] ] #! @EndExample #! @EndChunk