|
5 | 5 | 2*x1*x2 + 2*x2*x3 + 2*x3*x4 - x2, |
6 | 6 | x2^2 + 2*x1*x3 + 2*x2*x4 - x3]) |
7 | 7 | sols = Vector{QQFieldElem}[ |
8 | | - [4862548775//8589934592, 1281562925//8589934592, 2195068207//8589934592, -32714273694608759819673593948262790419337//174224571863520493293247799005065324265472], |
9 | | - [3779635503//8589934592, 2638476131//8589934592, 908473689//8589934592, -92633843493479102248442236077889080803361//696898287454081973172991196020261297061888], |
| 8 | + [9725097551//17179869184, 10252503395//68719476736, 8780272825//34359738368, -32714273694608759819673593948262790419337//174224571863520493293247799005065324265472], |
| 9 | + [15118542013//34359738368, 10553904527//34359738368, 14535579013//137438953472, -92633843493479102248442236077889080803361//696898287454081973172991196020261297061888], |
10 | 10 | [1, 0, 0, 0], |
11 | | - [6410479475//8589934592, 2005530653//8589934592, -1585770177//8589934592, 55658687714722201275489356321691134094555601//713623846352979940529142984724747568191373312], |
12 | | - [1611414365//8589934592, 673053615//8589934592, 632173751//8589934592, 708759148891639684402860468800417934359477//2787593149816327892691964784081045188247552], |
13 | | - [2863311531//8589934592, 0, 0, 14518714321960041107770649917088777022123//43556142965880123323311949751266331066368] |
| 11 | + [12820958949//17179869184, 16044245225//68719476736, -12686161419//68719476736, 55658687714722201275489356321691134094555601//713623846352979940529142984724747568191373312], |
| 12 | + [12891314913//68719476736, 10768857835//137438953472, 10114780001//137438953472, 708759148891639684402860468800417934359477//2787593149816327892691964784081045188247552], |
| 13 | + [11453246123//34359738368, 393751//45671926166590716193865151022383844364247891968, 5717949//182687704666362864775460604089535377456991567872, 14518714321960041107770649917088777022123//43556142965880123323311949751266331066368] |
14 | 14 | ] |
15 | 15 | inter_sols = Vector{Vector{QQFieldElem}}[ |
16 | | - [[2431274387//4294967296, 607818597//1073741824], [320390731//2147483648, 640781463//4294967296], [1097534103//4294967296, 137191763//536870912], [-16357136847304379909836796974131395209669//87112285931760246646623899502532662132736, -4089284211826094977459199243532848802417//21778071482940061661655974875633165533184]], |
17 | | - [[1889817751//4294967296, 236227219//536870912], [1319238065//4294967296, 659619033//2147483648], [113559211//1073741824, 454236845//4294967296], [-46316921746739551124221118038944540401681//348449143727040986586495598010130648530944, -2894807609171221945263819877434033775105//21778071482940061661655974875633165533184]], |
| 16 | + [[4862548775//8589934592, 607818597//1073741824], [5126251697//34359738368, 2563125849//17179869184], [1097534103//4294967296, 4390136413//17179869184], [-16357136847304379909836796974131395209669//87112285931760246646623899502532662132736, -4089284211826094977459199243532848802417//21778071482940061661655974875633165533184]], |
| 17 | + [[3779635503//8589934592, 7559271007//17179869184], [5276952263//17179869184, 659619033//2147483648], [3633894753//34359738368, 7267789507//68719476736], [-46316921746739551124221118038944540401681//348449143727040986586495598010130648530944, -2894807609171221945263819877434033775105//21778071482940061661655974875633165533184]], |
18 | 18 | [[1, 1], [0, 0], [0, 0], [0, 0]], |
19 | | - [[3205239737//4294967296, 1602619869//2147483648], [501382663//2147483648, 1002765327//4294967296], [-792885089//4294967296, -24777659//134217728], [3478667982170137579718084770105695880909725//44601490397061246283071436545296723011960832, 27829343857361100637744678160845567047277801//356811923176489970264571492362373784095686656]], |
20 | | - [[402853591//2147483648, 805707183//4294967296], [336526807//4294967296, 42065851//536870912], [316086875//4294967296, 79021719//1073741824], [177189787222909921100715117200104483589869//696898287454081973172991196020261297061888, 354379574445819842201430234400208967179739//1393796574908163946345982392040522594123776]], |
21 | | - [[1431655765//4294967296, 715827883//2147483648], [-1//4294967296, 1//4294967296], [-1//4294967296, 1//4294967296], [7259357160980020553885324958544388511061//21778071482940061661655974875633165533184, 3629678580490010276942662479272194255531//10889035741470030830827987437816582766592]] |
| 19 | + [[3205239737//4294967296, 6410479475//8589934592], [2005530653//8589934592, 8022122613//34359738368], [-3171540355//17179869184, -6343080709//34359738368], [3478667982170137579718084770105695880909725//44601490397061246283071436545296723011960832, 27829343857361100637744678160845567047277801//356811923176489970264571492362373784095686656]], |
| 20 | + [[402853591//2147483648, 6445657457//34359738368], [5384428917//68719476736, 2692214459//34359738368], [316086875//4294967296, 5057390001//68719476736], [177189787222909921100715117200104483589869//696898287454081973172991196020261297061888, 354379574445819842201430234400208967179739//1393796574908163946345982392040522594123776]], |
| 21 | + [[5726623061//17179869184, 2863311531//8589934592], [-3795019955//365375409332725729550921208179070754913983135744, 3801319971//365375409332725729550921208179070754913983135744], [-2148414955//182687704666362864775460604089535377456991567872, 2159850853//182687704666362864775460604089535377456991567872], [7259357160980020553885324958544388511061//21778071482940061661655974875633165533184, 3629678580490010276942662479272194255531//10889035741470030830827987437816582766592]] |
22 | 22 | ] |
23 | 23 | rat_sols = Vector{QQFieldElem}[[1, 0, 0, 0], [1//3, 0, 0, 1//3]] |
24 | 24 |
|
25 | 25 | @test sols == real_solutions(I) |
26 | 26 | @test inter_sols == real_solutions(I, interval=true) |
27 | 27 | @test rat_sols == rational_solutions(I) |
28 | 28 | @test I.real_sols == real_solutions(I) |
| 29 | + @test iszero(I.dim) |
29 | 30 |
|
30 | 31 | C, x = polynomial_ring(QQ, "x") |
31 | 32 | elim = 128304*x^8 - 93312*x^7 + 15552*x^6 + 3144*x^5 - 1120*x^4 + 36*x^3 + 15*x^2 - x |
|
55 | 56 | I = Ideal([x1^2-x2, x1*x3-x4, x2*x4-12, x4^3-x3^2]) |
56 | 57 | real_solutions(I) |
57 | 58 | @test I.rat_param.vars == Symbol[] |
| 59 | + @test I.dim == -1 |
58 | 60 |
|
59 | 61 | I = Ideal([x1^2-x2, x1*x3, x2-12]) |
60 | 62 | @test_throws ErrorException real_solutions(I) |
61 | 63 | @test_throws ErrorException real_solutions(I, interval=true) |
62 | 64 | @test_throws ErrorException rational_solutions(I) |
| 65 | + @test isnothing(I.dim) |
63 | 66 |
|
64 | 67 | R, (x, y) = polynomial_ring(QQ,["x","y"]) |
65 | 68 | # issue 54 |
|
0 commit comments