Top
Back: charstr
Forward: cleardenom
FastBack: Functions and system variables
FastForward: Control structures
Up: Functions
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

5.1.7 chinrem

Syntax:
chinrem ( list, intvec )
chinrem ( intvec, intvec )
Type:
ideal resp. bigint
Purpose:
applies chines remainder theorem to the fisrt argument wrt. the moduli given in the second.
Example:
 
  ring r=0,(x,y),dp;
  ideal i1=5x+2y,x2+3y2+xy;
  ideal i2=2x-3y,2x2+4y2+5xy;
  chinrem(list(i1,i2),intvec(7,11));
==> _[1]=-9x+30y
==> _[2]=-20x2-6xy-18y2
  chinrem(intvec(2,-3),intvec(7,11));
==> 30
See modstd_lib.

Top Back: charstr Forward: cleardenom FastBack: Functions and system variables FastForward: Control structures Up: Functions Top: Singular Manual Contents: Table of Contents Index: Index About: About this document
            User manual for Singular version 3-0-3, May 2007, generated by texi2html.