Top
Back: hasLeftDenom
Forward: isZeroNcfrac
FastBack:
FastForward:
Up: ncfrac_lib
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

D.15.25.2 hasRightDenom

Procedure from library ncfrac.lib (see ncfrac_lib).

Usage:
hasRightDenom(frac), ncfrac frac

Purpose:
checks if frac has a right representation

Return:
int, 1 if frac has a right representation, 0 otherwise

Example:
 
LIB "ncfrac.lib";
==> // ** redefining testNcfrac (LIB "ncfrac.lib";)
==> // ** redefining testNcloc (    LIB "ncloc.lib";)
==> // ** args must be 4 in     system("install", "ncloc", "string", nclocToS\
   tring, 1);
==> // ** args must be 4 in     system("install", "ncfrac", "string", ncfracT\
   oString, 1);
ring R = 0,(x,y,Dx,Dy),dp;
def S = Weyl();
setring S;
ncloc loc = ideal(x-3,y+7);
ncfrac noRight = list([x+2,3*y*Dx,0,0], loc);
hasRightDenom(noRight);
==> 0
ncfrac right = list([1,Dx,Dx,1], loc);
hasRightDenom(right);
==> 1


Top Back: hasLeftDenom Forward: isZeroNcfrac FastBack: FastForward: Up: ncfrac_lib Top: Singular Manual Contents: Table of Contents Index: Index About: About this document
            User manual for Singular version 4-1-1p3, 2018, generated by texi2html.