Google

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


setmod

setmod([p])
:: 有限体を GF(p) に設定する.
return
整数
n
2^27 未満の素数
  • 有限体を GF(p) に設定する. 設定値を返す.
  • 有限体の元の型を持つ数は, それ自身はどの有限体に属するかの情報を持たず, 現在設定されている素数 p により GF(p) 上での演算が適用される.
  • 位数の大きな有限体に関しては see section 有限体に関する演算.
[0] A=dp_mod(dp_ptod(2*x,[x]),3,[]);
(2)*<<1>>
[1] A+A;
addmi : invalid modulus
return to toplevel
[1] setmod(3);
3
[2] A+A;
(1)*<<1>>
参照
section dp_mod, dp_rat, section 数の型.


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