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
825679823069487759
o3 = {{{- ---------------------------------------,
170141183460469231731687303715884105728
------------------------------------------------------------------------
43962138011075519 41248173712355948587
--------------------------------------}, {--------------------,
42535295865117307932921825928971026432 18446744073709551616
------------------------------------------------------------------------
41248173712355948589 18446744073709551615 18446744073709551617
--------------------}}, {{--------------------, --------------------},
18446744073709551616 18446744073709551616 18446744073709551616
------------------------------------------------------------------------
41248173712355948587 10312043428088987147
{--------------------, --------------------}}, {{-
18446744073709551616 4611686018427387904
------------------------------------------------------------------------
12221175011
---------------------------------------,
340282366920938463463374607431768211456
------------------------------------------------------------------------
15322509519 10312043428088987147
---------------------------------------}, {- --------------------, -
340282366920938463463374607431768211456 4611686018427387904
------------------------------------------------------------------------
41248173712355948587 18446744073709551615 18446744073709551617
--------------------}}, {{--------------------, --------------------},
18446744073709551616 18446744073709551616 18446744073709551616
------------------------------------------------------------------------
41248173712355948589 41248173712355948587
{- --------------------, - --------------------}}}
18446744073709551616 18446744073709551616
o3 : List
|
i4 : rationalApproxSols = msolveRealSolutions(I, QQ)
649831271025185683 10312043428088987147
o4 = {{- ---------------------------------------, --------------------}, {1,
340282366920938463463374607431768211456 4611686018427387904
------------------------------------------------------------------------
82496347424711897175 775333627
--------------------}, {---------------------------------------, -
36893488147419103232 170141183460469231731687303715884105728
------------------------------------------------------------------------
82496347424711897175 10312043428088987147
--------------------}, {1, - --------------------}}
36893488147419103232 4611686018427387904
o4 : List
|
i5 : floatIntervalSols = msolveRealSolutions(I, RRi)
o5 = {{[-4.85291e-21,1.03354e-21], [2.23607,2.23607]}, {[1,1],
------------------------------------------------------------------------
[2.23607,2.23607]}, {[-3.59148e-29,4.50288e-29], [-2.23607,-2.23607]},
------------------------------------------------------------------------
{[1,1], [-2.23607,-2.23607]}}
o5 : List
|
i6 : floatIntervalSols = msolveRealSolutions(I, RRi_10)
o6 = {{[-4.96893e-9,1.50329e-9], [2.23607,2.23607]}, {[.999999,1],
------------------------------------------------------------------------
[2.23607,2.23607]}, {[-2.13563e-7,1.68692e-7], [-2.23607,-2.23607]},
------------------------------------------------------------------------
{[.999999,1], [-2.23607,-2.23607]}}
o6 : List
|
i7 : floatApproxSols = msolveRealSolutions(I, RR)
o7 = {{-1.90968e-21, 2.23607}, {1, 2.23607}, {4.557e-30, -2.23607}, {1,
------------------------------------------------------------------------
-2.23607}}
o7 : List
|
i8 : floatApproxSols = msolveRealSolutions(I, RR_10)
o8 = {{-1.73282e-9, 2.23607}, {1, 2.23607}, {-2.24354e-8, -2.23607}, {1,
------------------------------------------------------------------------
-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 = {{[-4.85291e-21,1.03354e-21], [2.23607,2.23607]}, {[1,1],
-----------------------------------------------------------------------
[2.23607,2.23607]}, {[-3.59148e-29,4.50288e-29], [-2.23607,-2.23607]},
-----------------------------------------------------------------------
{[1,1], [-2.23607,-2.23607]}}
o10 : List
|