SolveTools
SemiAlgebraic
compute the solutions of a set of equations, inequations, and inequalities
Calling Sequence
Parameters
Description
Examples
Compatibility
SemiAlgebraic(sys)
SemiAlgebraic(sys, vars)
SemiAlgebraic(sys, vars, parameters=parms)
sys
-
list or set of equations, inequations, or inequalities with rational real coefficients
vars
(optional) list or set of variables
parms
(optional) a list of parameters
The command SolveTools[SemiAlgebraic] computes the solutions of a rational polynomial system consisting of a combination of equations, inequations, and inequalities over the real numbers.
If vars is not specified, the command determines the list of unknowns to be solved.
SemiAlgebraic will solve for all the unknown symbols in the input system. If vars is specified, but does not include all symbols in the system then the omitted symbols will be treated as parameters and the output will be a piecewise expression. The parameters option can be used to specify an ordered list of parameters.
The order of equations and inequalities in the solutions is determined by the order of the variables given in vars. If vars is not specified, the order that was used to solve the polynomial system is used.
This command is part of the SolveTools package, and can be used in the form SemiAlgebraic(..) only after executing the command with(SolveTools). However, it can always be accessed through the long form of the command using SolveTools[SemiAlgebraic](..).
with⁡SolveTools:
A set of inequations defines a region in the plane.
ineqs≔0<3⁢y−x−2,x2+y2<9,x2−y<0
ineqs≔0<3⁢y−x−2,x2−y<0,x2+y2<9
plots:-inequal⁡ineqs,x=−2..2,y=0..3,color=Nautical Dark Gray
A semi-algebraic solution defines a decomposition of that region into strips. The variable order x,y gives vertical strips.
sasolxy≔SolveTools:-SemiAlgebraic⁡ineqs,x,y
sasolxy≔RootOf⁡_Z4+_Z2−9,−1.602..−1.593<x,x<−23,x2<y,y<−x2+9,x=−23,49<y,y<773,−23<x,x<1,x3+23<y,y<−x2+9,x=1,1<y,y<2⁢2,1<x,x<RootOf⁡_Z4+_Z2−9,1.593..1.602,x2<y,y<−x2+9
plots:-inequal⁡sasolxy,x=−2..2,y=0..3,optionsfeasible=seq⁡color=cat⁡Nautical ,floor⁡i+12,i=1..nops⁡sasolxy
The variable order y,x gives horizontal strips.
sasolyx≔SolveTools:-SemiAlgebraic⁡ineqs,y,x
sasolyx≔49<y,y≤1,−y<x,x<3⁢y−2,1<y,y≤−12+372,−y<x,x<y,−12+372<y,y<3,−−y2+9<x,x<−y2+9
plots:-inequal⁡sasolyx,x=−2..2,y=0..3,optionsfeasible=seq⁡color=cat⁡Nautical ,floor⁡i+12,i=1..nops⁡sasolyx
If no variables are given then they are deduced.
SemiAlgebraic⁡x+y2<0,x2+x−1=0
x=−52−12,−2+2⁢52<y,y<2+2⁢52
SemiAlgebraic⁡x+y2<0,x2+x−1=0,y,x
RootOf⁡_Z4−_Z2−1,−1.274..−1.265<y,y<RootOf⁡_Z4−_Z2−1,1.265..1.274,x=−52−12
If some variables are not given, a piecewise case discussion is returned.
SemiAlgebraic⁡a⁢x<b,x
x=xa=0∧0<bx<ba0<aba<xa<0otherwise
SemiAlgebraic⁡a⁢x<b,x,parameters=b,a
x<0b=0∧0<a0<xb=0∧a<0x=x0<b∧a=0x<ba0<b∧0<aba<x0<b∧a<0x<bab<0∧0<aba<xb<0∧a<0otherwise
SemiAlgebraic⁡x+y2<a,x2+x−1=0,x,y
a≤−52−12x=−52−12,−2⁢5+2+4⁢a2<y,y<2⁢5+2+4⁢a2a≤52−12x=−52−12,−2⁢5+2+4⁢a2<y,y<2⁢5+2+4⁢a2,x=52−12,−−2⁢5+2+4⁢a2<y,y<−2⁢5+2+4⁢a252−12<a
SemiAlgebraic⁡0<x+y2,x2+x−1=0
x=−52−12,y<−2+2⁢52,x=−52−12,2+2⁢52<y,x=52−12,y=y
SemiAlgebraic⁡x2+y2<9,x2+x−1<0,x,y
−52−12<x,x<52−12,−−x2+9<y,y<−x2+9
SemiAlgebraic⁡x2+y2<9,x2−y<0,x,y
RootOf⁡_Z4+_Z2−9,−1.602..−1.593<x,x<RootOf⁡_Z4+_Z2−9,1.593..1.602,x2<y,y<−x2+9
The SolveTools[SemiAlgebraic] command was introduced in Maple 16.
For more information on Maple 16 changes, see Updates in Maple 16.
The parameters option was updated in Maple 17.
See Also
PDETools,Solve
RegularChains
RegularChains/SemiAlgebraicSetTools
RegularChains/SemiAlgebraicSetTools/CylindricalAlgebraicDecompose
RegularChains/SuggestVariableOrder
solve
Download Help Document