Go to the first, previous, next, last section, table of contents.

### `lmptop`

`lmptop(obj)`
  :: Converts the coefficients of a polynomial over GF(p) into integers.

return
  integral polynomial
obj
  polynomial over GF(p)

- Converts the coefficients of a polynomial over GF(p) into integers.
- An element of GF(p) is represented by a non-negative integer r less than p. Each coefficient of a polynomial is converted into an integer object whose value is r.

    [0] setmod_ff(pari(nextprime,2^40));
    1099511627791
    [1] F=simp_ff((x-1)^10);
    1*x^10+1099511627781*x^9+45*x^8+1099511627671*x^7+210*x^6
    +1099511627539*x^5+210*x^4+1099511627671*x^3+45*x^2+1099511627781*x+1
    [2] setmod_ff(547);
    547
    [3] F=simp_ff((x-1)^10);
    1*x^10+537*x^9+45*x^8+427*x^7+210*x^6+295*x^5+210*x^4+427*x^3+45*x^2+537*x+1
    [4] lmptop(F);
    x^10+537*x^9+45*x^8+427*x^7+210*x^6+295*x^5+210*x^4+427*x^3+45*x^2+537*x+1
    [5] lmptop(coef(F,1));
    537
    [6] ntype(@@);
    0

`References`
  section `simp_ff`

Go to the first, previous, next, last section, table of contents.