RegularChains[SemiAlgebraicSetTools]
RefineBox
refine a box
RefineListBox
refine a list of boxes
Calling Sequence
Parameters
Description
Examples
RefineBox(box, precision, R)
RefineListBox(l_boxes, precision, R)
R
-
polynomial ring
box
box isolating a root
precision
positive numeric constant
l_boxes
list of boxes isolating roots
The RefineBox command refines a box so its width is smaller or equal to precision. It returns a box isolating the same root as box.
The RefineListBox command refines a list of boxes so their widths are smaller or equal to precision. It returns a list of boxes isolating the same roots as l_boxes. It is more efficient than using map and RefineBox when the boxes isolate roots originating from the same regular chain. Refining a box allows one to refine instantly other boxes which share a common part.
with⁡RegularChains:
with⁡ChainTools:
with⁡SemiAlgebraicSetTools:
R≔PolynomialRing⁡y,x
R≔polynomial_ring
C≔Chain⁡x2−2⁢x−1,y−2⁢y−x,Empty⁡R,R
C≔regular_chain
L≔RealRootIsolate⁡C,R
L≔box,box,box,box,box,box
map⁡BoxValues,L,R
y=−4634132768,−14829091048576,x=−14829111048576,−741455524288,y=1048575524288,1048577524288,x=−14829111048576,−741455524288,y=1,x=1,y=2,x=1,y=14828991048576,741461524288,x=741455524288,14829111048576,y=524285262144,524291262144,x=741455524288,14829111048576
Refine the first box:
rb≔RefineBox⁡L1,10−5,R
rb≔box
BoxValues⁡rb,R
y=−4634132768,−14829091048576,x=−14829111048576,−741455524288
rlb≔RefineListBox⁡L,10−4,R
rlb≔box,box,box,box,box,box
map⁡BoxValues,rlb,R
y=524285262144,524291262144,x=741455524288,14829111048576,y=14828991048576,741461524288,x=741455524288,14829111048576,y=2,x=1,y=1,x=1,y=1048575524288,1048577524288,x=−14829111048576,−741455524288,y=−4634132768,−14829091048576,x=−14829111048576,−741455524288
rb≔RefineBox⁡L1,120,R
rlb≔RefineListBox⁡L,120,R
See Also
BoxValues
RealRootIsolate
Download Help Document