File: char-doc.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 (27 lines) | stat: -rw-r--r-- 783 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
--- status: DRAFT
--- author(s): kummini
--- notes: 

undocumented {
	     (char,FractionField), 
	     (char,QuotientRing),
	     (char,PolynomialRing)}

document { 
     Key => {char, (char,Ring), (char,AffineVariety), (char, InexactField), (char,ProjectiveVariety)},
     Headline => "computes the characteristic of the ring or field",
     Usage => "char F",
     Inputs => {
	   	"F" => Ring => {"or ", ofClass AffineVariety, " or ", ofClass ProjectiveVariety}
	  },
     Outputs => {
		{"the characteristic of the ring.  If ", TT "F", " is an affine or projective variety, then
		the characteristic of the corresponding ring is returned"}
	  },
     EXAMPLE lines ///
		R = ZZ/10007[x,y];
		char R
		R = ZZ[x]/823671827384723894723894723892
     	        char R
	  ///,
     }