SolveTools
AbstractRootOfSolution
return the solution to a system of equations as a group of abstract RootOfs
Calling Sequence
Parameters
Options
Description
Examples
AbstractRootOfSolution(eqns, vars)
eqns
-
list or set of equations to solve
vars
list or set of variables for which to solve
approx
(optional) bounding boxes for the variables for a specific solution
options
(optional) equation(s) of the form keyword = value, where keyword is one of 'simplified' or 'removemultiplicities'
If the option 'simplify'=false is given, then the resulting RootOfs in the output will not be simplified. The default is 'simplify'=true, in which case a call to simplify/RootOf will be performed.
If the option 'removemultiplicities'=true is given, then the :-remove_multiplicities flag will be passed to simplify, if simplification is performed.
The AbstractRootOfSolution command takes a system of equations in multiple variables, rewrites each equation as an abstract function of one or more variables, solves the resulting system to obtain a solution in RootOf form, and then back-substitutes the original equation into the result and simplifies.
The number of variables in vars must be greater than or equal to the number of equations in eqns. (This method does not work with overdetermined systems, since each variable can be expressed as at most one RootOf in the output.)
If the solution to the system of abstract functions cannot be expressed as a group of RootOfs (because there are not enough indeterminates, or the system cannot be triangularized) then NULL is returned and the global variable _SolutionsMayBeLost is set to true.
SolveTools:-AbstractRootOfSolution⁡h⁡x,t,g⁡t,u,f⁡x,t,u,x
t=RootOf⁡h⁡RootOf⁡f⁡_Z,_Z,u=RootOf⁡g⁡RootOf⁡h⁡RootOf⁡f⁡_Z,_Z,_Z,x=RootOf⁡f⁡_Z
SolveTools:-AbstractRootOfSolution⁡r=f⁡x,t,s=u⁢h⁡t+h2⁡t,v=m⁡x,x,t,u
x=RootOf⁡−v+m⁡_Z,t=RootOf⁡r−f⁡RootOf⁡−v+m⁡_Z,_Z,u=−h2⁡RootOf⁡r−f⁡RootOf⁡−v+m⁡_Z,_Z+sh⁡RootOf⁡r−f⁡RootOf⁡−v+m⁡_Z,_Z
SolveTools:-AbstractRootOfSolution⁡f⁡x,f⁡x,y,z,x,y,z
x=RootOf⁡f⁡_Z,y=y,z=RootOf⁡f⁡RootOf⁡f⁡_Z,y,_Z
SolveTools:-AbstractRootOfSolution⁡y2+y=6,x2=y,x,y
x=RootOf⁡_Z2−RootOf⁡_Z2+_Z−6,y=RootOf⁡_Z2+_Z−6
See Also
RootOf
simplify/RootOf
solve
Download Help Document