Ejemplo n.º 1
0
print "f: " + str(f)

n = d * d + y + 1
f = RF(r, d, n)
print "f: " + str(f)
print

# beware not to mix expressions
f = f**2 - f
print "f^2-f: " + str(f)
print

f = f / f
print "f/f: " + str(f)

f = RF(r, d, one)
print "f: " + str(f)

f = RF(r, zero)
print "f: " + str(f)

f = RF(r, d, y)
print "f: " + str(f)

print "one:  " + str(f.one())
print "zero: " + str(f.zero())
print

terminate()
#sys.exit();
Ejemplo n.º 2
0
print "f: " + str(f);

n = d*d + y + 1;
f = RF(d,n);
print "f: " + str(f);
print;

# beware not to mix expressions
f = f**2 - f;
print "f^2-f: " + str(f);
print;

f = f/f;
print "f/f: " + str(f);

f = RF(d,one);
print "f: " + str(f);

f = RF(zero);
print "f: " + str(f);

f = RF( (d,y) );
print "f: " + str(f);

print "one:  " + str(f.one());
print "zero: " + str(f.zero());
print;

terminate();
#sys.exit();