Go to the first, previous, next, last section, table of contents.
- poly % m
- 
:: 整数による剰余
- return
- 
整数または多項式
- poly
- 
整数または整数係数多項式
- m
- 
整数
- 
poly の各係数を m で割った剰余で置き換えた多項式を返す. 
- 
結果の係数は全て正の整数となる. 
- 
poly は整数でもよい. この場合, 結果が正に正規化されることを除けば
irem()と同様に用いることができる.
- 
poly の係数, m とも整数である必要があるが, チェックは行なわれない. 
[0] (x+2)^5 % 3;
x^5+x^4+x^3+2*x^2+2*x+2
[1] (x-2)^5 % 3;
x^5+2*x^4+x^3+x^2+2*x+1
[2] (-5) % 4;
3
[3] irem(-5,4);
-1
- 参照
- 
section idiv,irem.
Go to the first, previous, next, last section, table of contents.