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 reddoes not convert rational coefficients of the
numerator.
You cannot obtain an integral polynomial by direct use of the functionnm().  The functionnm()returns the numerator of its
argument, and a polynomial with rational coefficients is
the numerator of itself and will be returned as it is.
- When the option factor is set, the return value is a list [g,c].
Here, c is a rational number, g is an integral polynomial 
and poly = c*g holds.
[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.