|
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";)
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
|
|