RegularChains[FastArithmeticTools]
RandomRegularChainDim0
generate a random 0-dim regular chain
Calling Sequence
Parameters
Description
Examples
RandomRegularChainDim0(lv, ld, p)
lv
-
a list of variables
ld
a list of degrees
p
a prime number
The command RandomRegularChainDim0 returns a randomly generated zero-dimensional regular chain with lv as variables. The degree sequence of the variables is ld. All the coefficients of the polynomials are reduced w.r.t p.
with⁡RegularChains:
with⁡ChainTools:
with⁡FastArithmeticTools:
p≔962592769:
vars≔x1,x2,x3,x4:
R≔PolynomialRing⁡vars,p:
N≔nops⁡vars:
dg≔3:
degs≔seq⁡4,i=1..N:
pol≔randpoly⁡vars,dense,degree=dg+rand⁡modpmodp:
tc≔RandomRegularChainDim0⁡vars,degs,p
tc≔regular_chain
Computing with the modpn-supported and modular code
r1≔IteratedResultantDim0⁡pol,tc,R
r1≔446889812
Computing with the non-fast non-modular code
r2≔IteratedResultant⁡pol,tc,R
r2≔446889812
The results computed by IteratedResultantDim0 and IteratedResultant are equivalent.
evalb⁡r1=r2
true
See Also
IteratedResultant
IteratedResultantDim0
IteratedResultantDim1
RandomRegularChainDim1
RegularChains
Download Help Document