RegularSystemDifference - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


RegularChains[ConstructibleSetTools]

  

RegularSystemDifference

  

compute the difference of two regular systems

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

RegularSystemDifference(rs1, rs2, R)

Parameters

rs1, rs2

-

regular systems of R

R

-

polynomial ring

Description

• 

The command RegularSystemDifference(rs1, rs2, R) returns a constructible set which is the difference of rs1 and rs2.

• 

This command is part of the RegularChains[ConstructibleSetTools] package, so it can be used in the form RegularSystemDifference(..) only after executing the command with(RegularChains[ConstructibleSetTools]). However, it can always be accessed through the long form of the command by using RegularChains[ConstructibleSetTools][RegularSystemDifference](..).

Examples

withRegularChains:

withChainTools:

withConstructibleSetTools:

Define a polynomial ring.

RPolynomialRingx,y,z

Rpolynomial_ring

(1)

Define a set of polynomials of R.

syszx2+y+z,y2+z

syszx2+y+z,y2+z

(2)

The command Triangularize (with lazard option) decomposes the common solutions of the polynomial system sys by means of regular chains.

decTriangularizesys,R,output=lazard

decregular_chain,regular_chain

(3)

There are two groups of solutions, each of which is given by a regular chain. To view their equations, use the Equations command.

mapEquations,dec,R

zx2+y+z,y2+z,y,z

(4)

Let rc1 be the first regular chain, and rc2 be the second one.

rc1,rc2dec1,dec2

rc1,rc2regular_chain,regular_chain

(5)

Consider two polynomials h1 and h2; regard them as inequations.

h1,h2x,x+z

h1,h2x,x+z

(6)

To obtain a regular system, first check whether h1 is regular with respect to rc1, and h2 is regular with respect to rc2.

IsRegularh1,rc1,R;IsRegularh2,rc2,R

true

true

(7)

Both of them are regular, thus you can build the following regular systems.

rs1RegularSystemrc1,h1,R;rs2RegularSystemrc2,h2,R

rs1regular_system

rs2regular_system

(8)

The command RegularSystemDifference computes the set theoretical difference of two sets defined by regular systems. The output is a list of regular systems which forms a constructible set.

csRegularSystemDifferencers1,rs2,R

csconstructible_set

(9)

To view the output, use the following sequence of commands.

lrsRepresentingRegularSystemscs,R

lrsregular_system

(10)

lrcmapRepresentingChain,lrs,R

lrcregular_chain

(11)

eqsmapEquations,lrc,R

eqszx2+y+z,y2+z

(12)

ineqsmapRepresentingInequations,lrs,R

ineqsx,z

(13)

Alternatively, you could use the Info command.

Infocs,R

zx2+y+z,y2+z,x,z

(14)

See Also

ConstructibleSet

ConstructibleSetTools

Difference

RegularChains

RegularSystem

RepresentingChain

RepresentingInequations