Go to the first, previous, next, last section, table of contents.
- ptozp(poly)
-
:: Converts a polynomial poly with rational coefficients into
an integral polynomial such that GCD of all its coefficients is 1.
- return
-
polynomial
- poly
-
polynomial
-
Converts the given polynomial by multiplying some rational number
into an integral polynomial such that GCD of all its coefficients is 1.
-
In general, operations on polynomials can be
performed faster for integer coefficients than for rational number
coefficients. Therefore, this function is conveniently used to improve
efficiency.
-
Function
red
does not convert rational coefficients of the
numerator.
You cannot obtain an integral polynomial by direct use of the function
nm()
. The function nm()
returns the numerator of its
argument, and a polynomial with rational coefficients is
the numerator of itself and will be returned as it is.
[0] ptozp(2*x+5/3);
6*x+5
[1] nm(2*x+5/3);
2*x+5/3
- References
-
section
nm
, dn
.
Go to the first, previous, next, last section, table of contents.