Ask Your Question

Revision history [back]

This answer is given because the OP did not specify for what purpose (s)he wants the restriction.

The usual method in Sage outside of symbolics to ensure entities are integer, rational, real etc. is to work in the respective ring. So if you work with polynomials and want them to have integer coefficients use PolynomialRing(ZZ).