Top
Back: 5.1.3 betti
Forward: 5.1.5 char_series
FastBack: 5. Functions and system variables
FastForward: 6. Tricks and pitfalls
Up: 5.1 Functions
Top: Singular 2-0-4 Manual
Contents: Table of Contents
Index: F. Index
About: About This Document

5.1.4 char

Syntax:

char ( ring_name )

Type:

int

Purpose:

returns the characteristic of the coefficient field of a ring.

Example:
 
  ring r=32003,(x,y),dp;
  char(r);
→ 32003
  ring s=0,(x,y),dp;
  char(s);
→ 0
  ring ra=(7,a),(x,y),dp;
  minpoly=a^3+a+1;
  char(ra);
→ 7
  ring rp=(49,a),(x,y),dp;
  char(rp);
→ 7
  ring rr=real,x,dp;
  char(rr);
→ 0

See charstr; ring.


Top Back: 5.1.3 betti Forward: 5.1.5 char_series FastBack: 5. Functions and system variables FastForward: 6. Tricks and pitfalls Up: 5.1 Functions Top: Singular 2-0-4 Manual Contents: Table of Contents Index: F. Index About: About This Document
            User manual for Singular version 2-0-4, October 2002, generated by texi2html.