RandomRegularChainDim1 - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


RegularChains[FastArithmeticTools]

  

RandomRegularChainDim1

  

generate a random one-dim regular chain

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

RandomRegularChainDim1(lv, ld, p)

Parameters

lv

-

a list of variables

ld

-

a list of degrees

p

-

a prime number

Description

• 

The command RandomRegularChainDim1 returns a randomly generated one-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.

Examples

> 

with⁡RegularChains:

> 

with⁡ChainTools:

> 

with⁡FastArithmeticTools:

> 

p≔962592769:

> 

vars≔x1,x2,x3,x4:

> 

R≔PolynomialRing⁡vars,p:

Randomly generating (dense) regular chain and polynomial

> 

N≔nops⁡vars:

> 

dg≔3:

> 

degs≔seq⁡2,i=1..N:

> 

bound≔35:

> 

pol≔randpoly⁡vars,dense,degree=dg+rand⁡modpmodp:

> 

tc≔RandomRegularChainDim1⁡vars,degs,p

tc≔regular_chain

(1)

Computing with the modpn-supported and modular code

> 

r1≔IteratedResultantDim1⁡pol,tc,R,x4,bound

r1≔941032609⁢x424+942118408⁢x423+194753142⁢x422+341712954⁢x421+2338033⁢x420+475384741⁢x419+457989148⁢x418+681536348⁢x417+718107114⁢x416+148212901⁢x415+33032177⁢x414+214227263⁢x413+150959749⁢x412+8508997⁢x411+76347793⁢x410+927296123⁢x49+733361705⁢x48+689644959⁢x47+204369026⁢x46+361192708⁢x45+138352162⁢x44+832291904⁢x43+263580044⁢x42+106333828⁢x4+323296554

(2)

Computing with the non-fast non-modular code

> 

r2≔IteratedResultant⁡pol,tc,R

r2≔941032609⁢x424+942118408⁢x423+194753142⁢x422+341712954⁢x421+2338033⁢x420+475384741⁢x419+457989148⁢x418+681536348⁢x417+718107114⁢x416+148212901⁢x415+33032177⁢x414+214227263⁢x413+150959749⁢x412+8508997⁢x411+76347793⁢x410+927296123⁢x49+733361705⁢x48+689644959⁢x47+204369026⁢x46+361192708⁢x45+138352162⁢x44+832291904⁢x43+263580044⁢x42+106333828⁢x4+323296554

(3)

The results computed by IteratedResultantDim1 and IteratedResultant are equivalent.

> 

evalb⁡r1=r2

true

(4)

See Also

IteratedResultant

IteratedResultantDim0

IteratedResultantDim1

RandomRegularChainDim0

RegularChains