BoxValues - Maple Help

RegularChains[SemiAlgebraicSetTools]

 RealRootIsolate
 isolate real roots
 BoxValues
 extract values from a box

 Calling Sequence RealRootIsolate(F, N, P, H, R, opts) RealRootIsolate(rc, R, opts) BoxValues(box, R)

Parameters

 R - polynomial ring F - list of polynomials of R N - list of polynomials of R P - list of polynomials of R H - list of polynomials of R rc - regular chain of R opts - (optional) equation(s) of the form keyword=value where keyword is one of 'abserr', 'rerr', 'constraints', or 'method'. box - box isolating a root

Description

 • The RealRootIsolate command returns a list of boxes. Each box isolates exactly one real root of the regular chain rc or semi-algebraic system $S$ whose polynomial equations, non-negative polynomial inequalities, (strictly) positive polynomial inequalities and polynomial inequations are given respectively by F, N, P, and H. Moreover, it is guaranteed that all real solutions are found. The regular chain rc or semi-algebraic system $S$ has to be zero-dimensional (see IsZeroDimensional). Furthermore, rc must be square-free (see Squarefree and the radical option of Triangularize).
 • Each box returned by the RealRootIsolate command is a Cartesian product of open intervals or singletons. The BoxValues command retrieves a detailed description of the box parameter and returns a list of elements of the form $v=\left[a,b\right]$ (with $a) or $v=a$. In the former case, it means that $a . In the latter case, it means that the value of $v$ is $a$.
 • The options 'abserr'=avalue and 'rerr'=rvalue can be used to specify the maximal size of the returned boxes. When one of these options is provided, avalue or rvalue should be a positive rational number. In the first case, all boxes returned by the RealRootIsolate will have a width smaller than or equal to avalue; in the second case, the ratio of the width and the absolute value of the encoded non-zero real algebraic number is smaller than or equal to rvalue, where the width of a box is defined as the maximum of the widths of the intervals of box.
 • The option 'constraints'=value can be used to constrain the range of the variables. This option can be used in the calling sequence with a regular chain rc. value should be a list of equations of the form v=cons_v, where v is a variable name. Not all variables need to be constrained, and each variable should appear at most once in the list value. The RealRootIsolate will only return solutions which satisfy all constraints. The cons_v can have one of the following forms, depending on the desired constraint: $a$ (meaning $v=a$), $\left[a,b\right]$ (meaning $a ), $\left[\mathrm{closed}\left(a\right),b\right]$ (meaning $a<=v ), $\left[a,\mathrm{closed}\left(b\right)\right]$ (meaning $a ), $\left[\mathrm{closed}\left(a\right),\mathrm{closed}\left(b\right)\right]$ (meaning $a<=v<=b$ ).
 • You can specify the algorithm using the option 'method' = 'VincentCollinsAkritas' or 'Discoverer'. The first one is a generalization of the Vincent-Collins-Akritas algorithm which isolates real roots for univariate polynomials. The techniques are very close to the ones used by Renaud Rioboo in his ISSAC 1992 paper (see reference below). The other one implements the algorithm of the paper "Real Solution Isolation Using Interval Arithmetic" by B. Xia and T. Zhang. By default, the first one is used. However, the second one can often do better on large input data.

Examples

 > $\mathrm{with}\left(\mathrm{RegularChains}\right):$
 > $\mathrm{with}\left(\mathrm{ChainTools}\right):$
 > $\mathrm{with}\left(\mathrm{SemiAlgebraicSetTools}\right):$
 > $R≔\mathrm{PolynomialRing}\left(\left[y,x\right]\right)$
 ${R}{≔}{\mathrm{polynomial_ring}}$ (1)
 > $F≔\left[{x}^{3}-20x,{y}^{2}-2x\right]:$$N≔\left[y\right]:$$P≔\left[x\right]:$$H≔\left[x+y\right]:$
 > $L≔\mathrm{RealRootIsolate}\left(F,N,P,H,R\right)$
 ${L}{≔}\left[{\mathrm{box}}\right]$ (2)

Note that the constraints option is not supported in this calling sequence with four polynomial sets F, N, P and H. Other examples hereafter illustrate the use of the constraints option.

 > $\mathrm{map}\left(\mathrm{BoxValues},L,R\right)$
 $\left[\left[{y}{=}\left[\frac{{23}}{{8}}{,}{3}\right]{,}{x}{=}\left[\frac{{143}}{{32}}{,}\frac{{573}}{{128}}\right]\right]\right]$ (3)
 > $L≔\mathrm{RealRootIsolate}\left(F,N,P,H,R,'\mathrm{abserr}'=\frac{1}{{2}^{5}}\right)$
 ${L}{≔}\left[{\mathrm{box}}\right]$ (4)
 > $\mathrm{map}\left(\mathrm{BoxValues},L,R\right)$
 $\left[\left[{y}{=}\left[\frac{{1531}}{{512}}{,}\frac{{383}}{{128}}\right]{,}{x}{=}\left[\frac{{4579}}{{1024}}{,}\frac{{1145}}{{256}}\right]\right]\right]$ (5)
 > $L≔\mathrm{RealRootIsolate}\left(F,N,P,H,R,'\mathrm{rerr}'=\frac{1}{{2}^{5}}\right)$
 ${L}{≔}\left[{\mathrm{box}}\right]$ (6)
 > $\mathrm{map}\left(\mathrm{BoxValues},L,R\right)$
 $\left[\left[{y}{=}\left[\frac{{95}}{{32}}{,}{3}\right]{,}{x}{=}\left[\frac{{143}}{{32}}{,}\frac{{1145}}{{256}}\right]\right]\right]$ (7)
 > $L≔\mathrm{RealRootIsolate}\left(F,N,P,H,R,\mathrm{method}='\mathrm{Discoverer}'\right)$
 ${L}{≔}\left[{\mathrm{box}}\right]$ (8)
 > $\mathrm{map}\left(\mathrm{BoxValues},L,R\right)$
 $\left[\left[{y}{=}\left[\frac{{23}}{{8}}{,}{3}\right]{,}{x}{=}\left[\frac{{143}}{{32}}{,}\frac{{573}}{{128}}\right]\right]\right]$ (9)
 > $L≔\mathrm{RealRootIsolate}\left(F,N,P,H,R,'\mathrm{rerr}'=\frac{1}{{2}^{10}},\mathrm{method}='\mathrm{Discoverer}'\right)$
 ${L}{≔}\left[{\mathrm{box}}\right]$ (10)
 > $\mathrm{map}\left(\mathrm{BoxValues},L,R\right)$
 $\left[\left[{y}{=}\left[\frac{{48999}}{{16384}}{,}\frac{{6125}}{{2048}}\right]{,}{x}{=}\left[\frac{{36635}}{{8192}}{,}\frac{{9159}}{{2048}}\right]\right]\right]$ (11)

Build a simple regular chain:

 > $C≔\mathrm{Chain}\left(\left[2{x}^{2}-1,3{y}^{3}-x\right],\mathrm{Empty}\left(R\right),R\right)$
 ${C}{≔}{\mathrm{regular_chain}}$ (12)
 > $L≔\mathrm{RealRootIsolate}\left(C,R\right)$
 ${L}{≔}\left[{\mathrm{box}}{,}{\mathrm{box}}\right]$ (13)

Retrieve the box values:

 > $\mathrm{map}\left(\mathrm{BoxValues},L,R\right)$
 $\left[\left[{y}{=}\left[{-}\frac{{20727073}}{{33554432}}{,}{-}\frac{{20727063}}{{33554432}}\right]{,}{x}{=}\left[{-}\frac{{46341}}{{65536}}{,}{-}\frac{{741455}}{{1048576}}\right]\right]{,}\left[{y}{=}\left[\frac{{10363531}}{{16777216}}{,}\frac{{10363537}}{{16777216}}\right]{,}{x}{=}\left[\frac{{741455}}{{1048576}}{,}\frac{{46341}}{{65536}}\right]\right]\right]$ (14)

Using the 'abserr' option:

 > $L≔\mathrm{RealRootIsolate}\left(C,R,'\mathrm{abserr}'=\frac{1}{{10}^{10}}\right)$
 ${L}{≔}\left[{\mathrm{box}}{,}{\mathrm{box}}\right]$ (15)
 > $\mathrm{map}\left(\mathrm{BoxValues},L,R\right)$
 $\left[\left[{y}{=}\left[{-}\frac{{2716737851577}}{{4398046511104}}{,}{-}\frac{{10866951406269}}{{17592186044416}}\right]{,}{x}{=}\left[{-}\frac{{759250125}}{{1073741824}}{,}{-}\frac{{97184015999}}{{137438953472}}\right]\right]{,}\left[{y}{=}\left[\frac{{2716737851567}}{{4398046511104}}{,}\frac{{2716737851577}}{{4398046511104}}\right]{,}{x}{=}\left[\frac{{97184015999}}{{137438953472}}{,}\frac{{759250125}}{{1073741824}}\right]\right]\right]$ (16)

Using the 'constraints' option:

 > $C≔\mathrm{Chain}\left(\left[{x}^{2}-2,\left(y-1\right)\left(y-x\right)\right],\mathrm{Empty}\left(R\right),R\right)$
 ${C}{≔}{\mathrm{regular_chain}}$ (17)
 > $L≔\mathrm{RealRootIsolate}\left(C,R,'\mathrm{constraints}'=\left[\right]\right)$
 ${L}{≔}\left[{\mathrm{box}}{,}{\mathrm{box}}{,}{\mathrm{box}}{,}{\mathrm{box}}\right]$ (18)
 > $\mathrm{map}\left(\mathrm{BoxValues},L,R\right)$
 $\left[\left[{y}{=}\left[{-}\frac{{46341}}{{32768}}{,}{-}\frac{{1482909}}{{1048576}}\right]{,}{x}{=}\left[{-}\frac{{1482911}}{{1048576}}{,}{-}\frac{{741455}}{{524288}}\right]\right]{,}\left[{y}{=}\left[\frac{{524287}}{{524288}}{,}\frac{{524289}}{{524288}}\right]{,}{x}{=}\left[{-}\frac{{1482911}}{{1048576}}{,}{-}\frac{{741455}}{{524288}}\right]\right]{,}\left[{y}{=}\left[\frac{{524283}}{{524288}}{,}\frac{{524293}}{{524288}}\right]{,}{x}{=}\left[\frac{{741455}}{{524288}}{,}\frac{{1482911}}{{1048576}}\right]\right]{,}\left[{y}{=}\left[\frac{{370725}}{{262144}}{,}\frac{{1482921}}{{1048576}}\right]{,}{x}{=}\left[\frac{{741455}}{{524288}}{,}\frac{{1482911}}{{1048576}}\right]\right]\right]$ (19)
 > $L≔\mathrm{RealRootIsolate}\left(C,R,'\mathrm{constraints}'=\left[x=4\right]\right)$
 ${L}{≔}\left[\right]$ (20)
 > $L≔\mathrm{RealRootIsolate}\left(C,R,'\mathrm{constraints}'=\left[x=\left[1,2\right]\right]\right)$
 ${L}{≔}\left[{\mathrm{box}}{,}{\mathrm{box}}\right]$ (21)
 > $\mathrm{map}\left(\mathrm{BoxValues},L,R\right)$
 $\left[\left[{y}{=}\left[\frac{{1}}{{2}}{,}\frac{{11}}{{8}}\right]{,}{x}{=}\left[\frac{{45}}{{32}}{,}\frac{{23}}{{16}}\right]\right]{,}\left[{y}{=}\left[\frac{{11}}{{8}}{,}\frac{{9}}{{4}}\right]{,}{x}{=}\left[\frac{{45}}{{32}}{,}\frac{{23}}{{16}}\right]\right]\right]$ (22)
 > $L≔\mathrm{RealRootIsolate}\left(C,R,'\mathrm{constraints}'=\left[y=1\right]\right)$
 ${L}{≔}\left[{\mathrm{box}}{,}{\mathrm{box}}\right]$ (23)
 > $\mathrm{map}\left(\mathrm{BoxValues},L,R\right)$
 $\left[\left[{y}{=}{1}{,}{x}{=}\left[{0}{,}{2}\right]\right]{,}\left[{y}{=}{1}{,}{x}{=}\left[{-2}{,}{0}\right]\right]\right]$ (24)
 > $L≔\mathrm{RealRootIsolate}\left(C,R,'\mathrm{constraints}'=\left[y=\left[\mathrm{closed}\left(1\right),2\right]\right]\right)$
 ${L}{≔}\left[{\mathrm{box}}{,}{\mathrm{box}}{,}{\mathrm{box}}\right]$ (25)
 > $\mathrm{map}\left(\mathrm{BoxValues},L,R\right)$
 $\left[\left[{y}{=}{1}{,}{x}{=}\left[{0}{,}{2}\right]\right]{,}\left[{y}{=}{1}{,}{x}{=}\left[{-2}{,}{0}\right]\right]{,}\left[{y}{=}\left[{1}{,}{2}\right]{,}{x}{=}\left[\frac{{5}}{{4}}{,}\frac{{3}}{{2}}\right]\right]\right]$ (26)
 > $L≔\mathrm{RealRootIsolate}\left(C,R,'\mathrm{constraints}'=\left[y=\left[\mathrm{closed}\left(1\right),\frac{11}{10}\right]\right]\right)$
 ${L}{≔}\left[{\mathrm{box}}{,}{\mathrm{box}}\right]$ (27)
 > $\mathrm{map}\left(\mathrm{BoxValues},L,R\right)$
 $\left[\left[{y}{=}{1}{,}{x}{=}\left[{0}{,}{2}\right]\right]{,}\left[{y}{=}{1}{,}{x}{=}\left[{-2}{,}{0}\right]\right]\right]$ (28)
 > $L≔\mathrm{RealRootIsolate}\left(C,R,'\mathrm{constraints}'=\left[y=\left[1,2\right]\right]\right)$
 ${L}{≔}\left[{\mathrm{box}}\right]$ (29)
 > $\mathrm{map}\left(\mathrm{BoxValues},L,R\right)$
 $\left[\left[{y}{=}\left[{1}{,}{2}\right]{,}{x}{=}\left[\frac{{5}}{{4}}{,}\frac{{3}}{{2}}\right]\right]\right]$ (30)

References

 F. Boulier, C. Chen, F. Lemaire, M. Moreno Maza "Real root isolation of regular chains." ASCM'2009, Math-for-Industry, Lecture Note Series Vol. 22.
 R. Rioboo "Computation of the real closure of an ordered field." ISSAC'92, Academic Press, San Francisco.
 L. Yang, K. Hou, B. Xia "A complete algorithm for automated discovering of a class of inequality-type theorems." Sci. China Ser. F, Vol. 44 (2001): 33-49.
 B. Xia, L. Yang "An Algorithm for Isolating the Real Solutions of Semi-algebraic Systems." J. Symb. Comput., Vol. 34, Num. 5 (2002): 461-477.
 B. Xia, T. Zhang "Real Solution Isolation Using Interval Arithmetic." Computers and Mathematics with Applications, Vol. 52, (2006): 853-860.