Top
Back: D.7.5.2 Factor
Forward: D.7.5.4 Remainder
FastBack: D. SINGULAR libraries
FastForward: E. Release Notes
Up: D.7.5 zeroset_lib
Top: Singular 2-0-4 Manual
Contents: Table of Contents
Index: F. Index
About: About This Document

D.7.5.3 Quotient

Procedure from library zeroset.lib (see zeroset_lib).

Usage:

Quotient(f, g); where f,g are polynomials;

Purpose:

compute the quotient q and remainder r s.t. f = g*q + r, deg(r) < deg(g)

Return:

list of polynomials

 
  _[1] = quotient  q
  _[2] = remainder r
  
Assume:

basering = Q[x] or Q(a)[x]

Example:

 
LIB "zeroset.lib";
ring R = (0,a), x, lp;
minpoly = a2+1;
poly f =  x4 - 2;
poly g = x - a;
list qr = Quotient(f, g);
qr;
→ [1]:
→    x3+(a)*x2-x+(-a)
→ [2]:
→    0
qr[1]*g + qr[2] - f;
→ 1

Top Back: D.7.5.2 Factor Forward: D.7.5.4 Remainder FastBack: D. SINGULAR libraries FastForward: E. Release Notes Up: D.7.5 zeroset_lib 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.