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 10312043428088987147
o3 = {{{--------------------, --------------------}, {- --------------------,
18446744073709551616 18446744073709551616 4611686018427387904
------------------------------------------------------------------------
41248173712355948587 7203199991488832835
- --------------------}}, {{- ---------------------------------------,
18446744073709551616 170141183460469231731687303715884105728
------------------------------------------------------------------------
16092810347429692407 10312043428088987149
---------------------------------------}, {- --------------------, -
340282366920938463463374607431768211456 4611686018427387904
------------------------------------------------------------------------
41248173712355948581 18446744073709551615 18446744073709551617
--------------------}}, {{--------------------, --------------------},
18446744073709551616 18446744073709551616 18446744073709551616
------------------------------------------------------------------------
41248173712355948587 10312043428088987147
{--------------------, --------------------}}, {{-
18446744073709551616 4611686018427387904
------------------------------------------------------------------------
6325840137514155
---------------------------------------,
170141183460469231731687303715884105728
------------------------------------------------------------------------
21001584224127235 41248173712355948587
---------------------------------------}, {--------------------,
340282366920938463463374607431768211456 18446744073709551616
------------------------------------------------------------------------
10312043428088987147
--------------------}}}
4611686018427387904
o3 : List
|
i4 : rationalApproxSols = msolveRealSolutions(I, QQ)
82496347424711897175 1686410364452026737
o4 = {{1, - --------------------}, {---------------------------------------,
36893488147419103232 680564733841876926926749214863536422912
------------------------------------------------------------------------
82496347424711897177 82496347424711897175
- --------------------}, {1, --------------------},
36893488147419103232 36893488147419103232
------------------------------------------------------------------------
8349903949098925 82496347424711897175
{---------------------------------------, --------------------}}
680564733841876926926749214863536422912 36893488147419103232
o4 : List
|
i5 : floatIntervalSols = msolveRealSolutions(I, RRi)
o5 = {{[1,1], [-2.23607,-2.23607]}, {[-4.23366e-20,4.72925e-20],
------------------------------------------------------------------------
[-2.23607,-2.23607]}, {[1,1], [2.23607,2.23607]},
------------------------------------------------------------------------
{[-3.71799e-23,6.17181e-23], [2.23607,2.23607]}}
o5 : List
|
i6 : floatIntervalSols = msolveRealSolutions(I, RRi_10)
o6 = {{[.999999,1], [-2.23607,-2.23607]}, {[-5.35611e-8,4.49882e-8],
------------------------------------------------------------------------
[-2.23607,-2.23607]}, {[.999998,1], [2.23606,2.23607]},
------------------------------------------------------------------------
{[-1.56861e-8,1.21518e-8], [2.23607,2.23607]}}
o6 : List
|
i7 : floatApproxSols = msolveRealSolutions(I, RR)
o7 = {{1, -2.23607}, {2.47796e-21, -2.23607}, {1, 2.23607}, {1.22691e-23,
------------------------------------------------------------------------
2.23607}}
o7 : List
|
i8 : floatApproxSols = msolveRealSolutions(I, RR_10)
o8 = {{1, -2.23607}, {-4.28645e-9, -2.23607}, {1, 2.23607}, {-1.76715e-9,
------------------------------------------------------------------------
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]}, {[-4.23366e-20,4.72925e-20],
-----------------------------------------------------------------------
[-2.23607,-2.23607]}, {[1,1], [2.23607,2.23607]},
-----------------------------------------------------------------------
{[-3.71799e-23,6.17181e-23], [2.23607,2.23607]}}
o10 : List
|