Top
Back: freemodule
Forward: gen
FastBack: Functions and system variables
FastForward: Control structures
Up: Functions
Top: Singular 2-0-4 Manual
Contents: Table of Contents
Index: Index
About: About this document

5.1.39 gcd

Syntax:
gcd ( int_expression, int_expression )
gcd ( poly_expression, poly_expression )
Type:
the same as the type of the arguments
Purpose:
computes the greatest common divisor.
Note:
Not implemented for the coefficient fields real, finite fields of type (p^n,a), and algebraic extensions over the rational numbers.
Example:
 
  gcd(2,3);
==> 1
  ring r=0,(x,y,z),lp;
  gcd(3x2*(x+y),9x*(y2-x2));
==> x2+xy
See extgcd; int; poly.

Top Back: freemodule Forward: gen FastBack: Functions and system variables FastForward: Control structures Up: Functions Top: Singular 2-0-4 Manual Contents: Table of Contents Index: Index About: About this document
            User manual for Singular version 2-0-4, May 2003, generated by texi2html.