Home Online Manual
Top
Back: hasLeftDenom
Forward: isZeroNcfrac
FastBack:
FastForward:
Up: ncfrac_lib
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document
7.5.14.0. 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";) ./examples/hasRightDenom.\
   sing:1
==> // ** redefining testNcloc (    LIB "ncloc.lib";) ncfrac.lib::mod_init:11\
   3
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