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

### `simp_ff`

`simp_ff(obj)`
  :: Converts numbers or coefficients of polynomials into elements in finite fields.

return
  number or polynomial
obj
  number or polynomial

- Converts numbers or coefficients of polynomials into elements in finite fields.
- It is used to convert integers or intrgral polynomials int elements of finite fields or polynomials over finite fields.
- An element of a finite field may not have the reduced representation. In such case an application of `simp_ff` ensures that the output has the reduced representation. If a small finite field is set as a ground field, an integer is projected the finite prime field, then it is embedded into the ground field. `ptosfp()` can be used for direct projection to the ground field.

    [0] simp_ff((x+1)^10);
    x^10+10*x^9+45*x^8+120*x^7+210*x^6+252*x^5+210*x^4+120*x^3+45*x^2+10*x+1
    [1] setmod_ff(3);
    3
    [2] simp_ff((x+1)^10);
    1*x^10+1*x^9+1*x+1
    [3] ntype(coef(@@,10));
    6
    [4] setmod_ff(2,3);
    [2,x^3+x+1,x]
    [5] simp_ff(1);
    @_0
    [6] simp_ff(2);
    0
    [7] ptosfp(2);
    @_1

`References`
  section `setmod_ff`, section `lmptop`, section `gf2nton`, section `ptosfp`, `sfptop`

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