File: RandomCurves.m2

package info (click to toggle)
macaulay2 1.21%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 133,096 kB
  • sloc: cpp: 110,377; ansic: 16,306; javascript: 4,193; makefile: 3,821; sh: 3,580; lisp: 764; yacc: 590; xml: 177; python: 140; perl: 114; lex: 65; awk: 3
file content (58 lines) | stat: -rw-r--r-- 1,858 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
newPackage(
	"RandomCurves",
    	Version => "0.6",
    	Date => "Juli 5, 2011",
    	Authors => {{Name => "Frank-Olaf Schreyer",
		     Email => "schreyer@math.uni-sb.de",
		     HomePage => "http://www.math.uni-sb.de/ag/schreyer/"},

	            {Name => "Hans-Christian Graf v. Bothmer",
	             Email => "bothmer@uni-math.gwdg.de",
		     HomePage => "http://www.crcg.de/wiki/User:Bothmer"},

	     	    {Name=> "Florian Geiss",
	             Email=> "fg@math.uni-sb.de",
	             HomePage=> "http://www.math.uni-sb.de/ag/schreyer/"}


                   },
    	Headline => "random curves",
	Keywords => {"Examples and Random Objects"},
	PackageExports => {"RandomObjects","RandomSpaceCurves","RandomPlaneCurves","RandomGenus14Curves","RandomCanonicalCurves"},
    	DebuggingMode => false
        )

beginDocumentation()

-- authors: add some text to this documentation node:
doc ///
Key
 RandomCurves
///

end

restart;
uninstallPackage"RandomCurves"
uninstallPackage"RandomObjects"
uninstallPackage"RandomPlaneCurves"
uninstallPackage"RandomSpaceCurves"
uninstallPackage"RandomGenus14Curves"
uninstallPackage"RandomCanonicalCurves"
--installing all packages takes about 90 seconds:
installPackage("RandomObjects",RerunExamples=>true,RemakeAllDocumentation=>true);
installPackage("RandomPlaneCurves",RerunExamples=>true,RemakeAllDocumentation=>true);
installPackage("RandomSpaceCurves",RerunExamples=>true,RemakeAllDocumentation=>true);
installPackage("RandomGenus14Curves",RerunExamples=>true,RemakeAllDocumentation=>true);
installPackage("RandomCanonicalCurves",RerunExamples=>true,RemakeAllDocumentation=>true);
installPackage("RandomCurves",RerunExamples=>true,RemakeAllDocumentation=>true);
restart
loadPackage"RandomCurves"
viewHelp
g=7;
kk=ZZ/101;
R=kk[x_0..x_(g-1)];
C=(random canonicalCurve)(g,R);
betti res C
(genus C, degree C)