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
68705336111306367
o3 = {{{- --------------------------------------,
85070591730234615865843651857942052864
------------------------------------------------------------------------
31536138319968915 10312043428088987147
---------------------------------------}, {- --------------------, -
340282366920938463463374607431768211456 4611686018427387904
------------------------------------------------------------------------
41248173712355948587 9223372036854775807 18446744073709551619
--------------------}}, {{-------------------, --------------------}, {-
18446744073709551616 9223372036854775808 18446744073709551616
------------------------------------------------------------------------
10312043428088987149 41248173712355948579
--------------------, - --------------------}}, {{-
4611686018427387904 18446744073709551616
------------------------------------------------------------------------
1827647579376947
-------------------------------------,
5316911983139663491615228241121378304
------------------------------------------------------------------------
295296795327032753 41248173712355948587
---------------------------------------}, {--------------------,
340282366920938463463374607431768211456 18446744073709551616
------------------------------------------------------------------------
41248173712355948589 18446744073709551615 18446744073709551617
--------------------}}, {{--------------------, --------------------},
18446744073709551616 18446744073709551616 18446744073709551616
------------------------------------------------------------------------
41248173712355948587 10312043428088987147
{--------------------, --------------------}}}
18446744073709551616 4611686018427387904
o3 : List
|
i4 : rationalApproxSols = msolveRealSolutions(I, QQ)
243285206125256553 82496347424711897175
o4 = {{- ---------------------------------------, - --------------------},
680564733841876926926749214863536422912 36893488147419103232
------------------------------------------------------------------------
36893488147419103233 82496347424711897175
{--------------------, - --------------------},
36893488147419103232 36893488147419103232
------------------------------------------------------------------------
178327350246908145 10312043428088987147
{---------------------------------------, --------------------}, {1,
680564733841876926926749214863536422912 4611686018427387904
------------------------------------------------------------------------
82496347424711897175
--------------------}}
36893488147419103232
o4 : List
|
i5 : floatIntervalSols = msolveRealSolutions(I, RRi)
o5 = {{[-8.07627e-22,9.26764e-23], [-2.23607,-2.23607]}, {[1,1],
------------------------------------------------------------------------
[-2.23607,-2.23607]}, {[-3.43742e-22,8.67799e-22], [2.23607,2.23607]},
------------------------------------------------------------------------
{[1,1], [2.23607,2.23607]}}
o5 : List
|
i6 : floatIntervalSols = msolveRealSolutions(I, RRi_10)
o6 = {{[-7.79964e-7,2.33691e-7], [-2.23607,-2.23606]}, {[.999999,1],
------------------------------------------------------------------------
[-2.23607,-2.23607]}, {[-4.8183e-7,8.82246e-7], [2.23606,2.23608]},
------------------------------------------------------------------------
{[.999999,1], [2.23607,2.23607]}}
o6 : List
|
i7 : floatApproxSols = msolveRealSolutions(I, RR)
o7 = {{-3.57475e-22, -2.23607}, {1, -2.23607}, {2.62028e-22, 2.23607}, {1,
------------------------------------------------------------------------
2.23607}}
o7 : List
|
i8 : floatApproxSols = msolveRealSolutions(I, RR_10)
o8 = {{-2.73136e-7, -2.23607}, {1, -2.23607}, {2.00208e-7, 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 = {{[-8.07627e-22,9.26764e-23], [-2.23607,-2.23607]}, {[1,1],
-----------------------------------------------------------------------
[-2.23607,-2.23607]}, {[-3.43742e-22,8.67799e-22], [2.23607,2.23607]},
-----------------------------------------------------------------------
{[1,1], [2.23607,2.23607]}}
o10 : List
|