The second input is optional, and indicates the alternative ways to provide output either using an exact rational interval QQi, a real interval RRi, or by taking a rational or real approximation of the midpoint of the intervals.
i1 : R = QQ[x,y]
o1 = R
o1 : PolynomialRing
|
i2 : I = ideal {(x-1)*x, y^2-5}
2 2
o2 = ideal (x - x, y - 5)
o2 : Ideal of R
|
i3 : rationalIntervalSols = msolveRealSolutions I
18446744073709551615 18446744073709551617 41248173712355948587
o3 = {{{--------------------, --------------------}, {--------------------,
18446744073709551616 18446744073709551616 18446744073709551616
------------------------------------------------------------------------
10312043428088987147
--------------------}}, {{-
4611686018427387904
------------------------------------------------------------------------
219858770889280784144503823399
----------------------------------------------------------,
6277101735386680763835789423207666416102355444464034512896
------------------------------------------------------------------------
221967588266502475928288428281
----------------------------------------------------------},
6277101735386680763835789423207666416102355444464034512896
------------------------------------------------------------------------
41248173712355948587 10312043428088987147 18446744073709551615
{--------------------, --------------------}}, {{--------------------,
18446744073709551616 4611686018427387904 18446744073709551616
------------------------------------------------------------------------
18446744073709551617 10312043428088987147
--------------------}, {- --------------------, -
18446744073709551616 4611686018427387904
------------------------------------------------------------------------
41248173712355948587
--------------------}}, {{-
18446744073709551616
------------------------------------------------------------------------
28013786788615276926309049321
----------------------------------------------------------,
3138550867693340381917894711603833208051177722232017256448
------------------------------------------------------------------------
2525119206025091112609818255
---------------------------------------------------------}, {-
196159429230833773869868419475239575503198607639501078528
------------------------------------------------------------------------
10312043428088987147 41248173712355948587
--------------------, - --------------------}}}
4611686018427387904 18446744073709551616
o3 : List
|
i4 : rationalApproxSols = msolveRealSolutions(I, QQ)
82496347424711897175
o4 = {{1, --------------------},
36893488147419103232
------------------------------------------------------------------------
1054408688610845891892302441
{----------------------------------------------------------,
6277101735386680763835789423207666416102355444464034512896
------------------------------------------------------------------------
82496347424711897175 82496347424711897175
--------------------}, {1, - --------------------},
36893488147419103232 36893488147419103232
------------------------------------------------------------------------
12388120507786180875448042759
{----------------------------------------------------------, -
6277101735386680763835789423207666416102355444464034512896
------------------------------------------------------------------------
82496347424711897175
--------------------}}
36893488147419103232
o4 : List
|
i5 : floatIntervalSols = msolveRealSolutions(I, RRi)
o5 = {{[1,1], [2.23607,2.23607]}, {[-3.50255e-29,3.53615e-29],
------------------------------------------------------------------------
[2.23607,2.23607]}, {[1,1], [-2.23607,-2.23607]},
------------------------------------------------------------------------
{[-8.92571e-30,1.28728e-29], [-2.23607,-2.23607]}}
o5 : List
|
i6 : floatIntervalSols = msolveRealSolutions(I, RRi_10)
o6 = {{[.999999,1], [2.23607,2.23607]}, {[-1.67498e-7,1.64897e-7],
------------------------------------------------------------------------
[2.23607,2.23607]}, {[.999999,1], [-2.23607,-2.23607]},
------------------------------------------------------------------------
{[-6.67496e-8,3.61915e-8], [-2.23607,-2.23607]}}
o6 : List
|
i7 : floatApproxSols = msolveRealSolutions(I, RR)
o7 = {{1, 2.23607}, {1.67977e-31, 2.23607}, {1, -2.23607}, {1.97354e-30,
------------------------------------------------------------------------
-2.23607}}
o7 : List
|
i8 : floatApproxSols = msolveRealSolutions(I, RR_10)
o8 = {{1, 2.23607}, {-1.30058e-9, 2.23607}, {1, -2.23607}, {-1.52791e-8,
------------------------------------------------------------------------
-2.23607}}
o8 : List
|
i9 : I = ideal {(x-1)*x^3, (y^2-5)^2}
4 3 4 2
o9 = ideal (x - x , y - 10y + 25)
o9 : Ideal of R
|
i10 : floatApproxSols = msolveRealSolutions(I, RRi)
o10 = {{[1,1], [2.23607,2.23607]}, {[-3.50255e-29,3.53615e-29],
-----------------------------------------------------------------------
[2.23607,2.23607]}, {[1,1], [-2.23607,-2.23607]},
-----------------------------------------------------------------------
{[-8.92571e-30,1.28728e-29], [-2.23607,-2.23607]}}
o10 : List
|