|
D.14.4.3 boolean_constant
Procedure from library polybori.lib (see polybori_lib).
- Usage:
- boolean_constant(const[, rb]); const constant and rb boolean ring
- Return:
- default: constant const in the representation of the boolean ring
rb==boolean_poly_ring(basering); optional input: rb=boolean ring rb
Example:
| LIB "polybori.lib";
==> // ** args must be 1 in system("install", "bideal", "ideal", bid\
eal2ideal, 4);
ring r=7,(x,y),Dp;
pyobject rb=boolean_poly_ring(r);
boolean_constant(int(3));
==> 1
typeof(boolean_constant(int(3)));
==> pyobject
boolean_constant(int(0));
==> 0
typeof(boolean_constant(int(0)));
==> pyobject
| See also:
boolean_ideal;
boolean_std.
|