Saalehorizontale

35 Reputation

One Badge

0 years, 280 days

MaplePrimes Activity


These are questions asked by Saalehorizontale

Hey guys,

I have to solve a bunch of systems of polynomial equations und dome restrictions given by inequalitites. I have 8 variables, 8 equations and and 13 inequalitites. Since the simple solve or SemiAlgebraic command are not able to solve every system I tryd some other ways. Right now I try to bring the set of equations and ineqaulities in a better from or structure using RealTriangulize from the RegularChains library. Later on I want to take those results and use solve or SemiAlgebraic again, hoping, that Maple than finds the solutions and is not calculating for houres without a result. I already know, that you can have diffrent outputs for RealTriangularize (I know list, record, piecewise and zerodimensional, althought the last one is not really helpful). Since I want to go on wirking with the results I need to have them in a form, that I can read of the new equations and inequalities to put them into solve. Often that works totaly fine, but sometimes I get an output I dont understand. I understand what It means but I dont understand why Maple uses that type of output. If you have a look in the attached file you can see what I mean:

restart; with(RegularChains); eq_5334 := {y*(m*x-m-n+1)+(-x+1)*n-x = 0, (-p+t)*k+p*y-t = 0, (k-x-y)*t-k*p+y = 0, (-x-y+1)*t+(-k+y)*n+x*s = 0, (-x-y+1)*p+m*y^2+x-y = 0, (x^2-x)*m+y*(t-1)-n+1 = 0, -k*n+s*x = 0, m*x*y-p = 0, 0 < k, 0 < m, 0 < s, 0 < x, 0 < y, 0 < n+(t-1)*p, 0 < (m*y-1)*n+(1-p)*(m*x-m+1), 0 < (m*x-m-t+1)*p+m*y*(t-n), 1 < x+y, k < 1, m < 1, s < t, t < 1}; eq_5380 := {(-x-y+1)*p+m*x*y = 0, (-p+t)*k+p*y-t = 0, (k-x-y)*t-k*p+y = 0, (-x-y+1)*t+(-k+y)*n+x*s = 0, (m-1)*y^2+(-x+1)*y-p+x = 0, (x-1)*(m-1)*y-x^2-n+x = 0, m*x^2+(-m-n+1)*x+(-y+1)*n+t*y-1 = 0, -k*n+s*x = 0, 0 < k, 0 < m, 0 < s, 0 < x, 0 < y, 0 < n+(t-1)*p, 0 < (m*y-1)*n+(1-p)*(m*x-m+1), 0 < (m*x-m-t+1)*p+m*y*(t-n), 1 < x+y, k < 1, m < 1, s < t, t < 1}; eq_5382 := {(-x-y+1)*p+m*x*y = 0, y*(m*x-m-n+1)+(-x+1)*n-x = 0, (-p+t)*k+p*y-t = 0, (k-x-y)*t-k*p+y = 0, (-x-y+1)*t+(-k+y)*n+x*s = 0, (-x-y+1)*p+m*y^2+x-y = 0, m*x^2+(-m-n+1)*x+(-y+1)*n+t*y-1 = 0, -k*n+s*x = 0, 0 < k, 0 < m, 0 < s, 0 < x, 0 < y, 0 < n+(t-1)*p, 0 < (m*y-1)*n+(1-p)*(m*x-m+1), 0 < (m*x-m-t+1)*p+m*y*(t-n), 1 < x+y, k < 1, m < 1, s < t, t < 1}; sys := eq_5334; SuggestVariableOrder(sys); R := PolynomialRing(%); dec_5334 := RealTriangularize(sys, R, output = piecewise); sys := eq_5380; SuggestVariableOrder(sys); R := PolynomialRing(%); dec_5380 := RealTriangularize(sys, R, output = piecewise); sys := eq_5382; SuggestVariableOrder(sys); R := PolynomialRing(%); dec_5382 := RealTriangularize(sys, R, output = piecewise); sys := eq_5382; SuggestVariableOrder(sys); R := PolynomialRing(%); dec_5382_record := RealTriangularize(sys, R, output = record)

[AlgebraicGeometryTools, ChainTools, ConstructibleSetTools, Display, DisplayPolynomialRing, Equations, ExtendedRegularGcd, FastArithmeticTools, Inequations, Info, Initial, Intersect, Inverse, IsRegular, LazyRealTriangularize, MainDegree, MainVariable, MatrixCombine, MatrixTools, NormalForm, ParametricSystemTools, PolynomialRing, Rank, RealTriangularize, RegularGcd, RegularizeInitial, SamplePoints, SemiAlgebraicSetTools, Separant, SparsePseudoRemainder, SuggestVariableOrder, Tail, Triangularize]

 

[s, k, n, p, m, t, x, y]

 

R := polynomial_ring

 

dec_5334 := [[x*s+((-x^2+x)*m-t*y+y-1)*k = 0, (m*x*y-t)*k+(x+y)*t-y = 0, n+(-x^2+x)*m-t*y+y-1 = 0, -m*x*y+p = 0, (x^2*y+(y^2-y)*x-y^2)*m-x+y = 0, t*y^2-y^2+x = 0, (15*y^2+24*y+20)*x-6*y^2-13*y-10 = 0, y^3-y-2 = 0, 0 < k, 0 < m, 0 < s, 0 < x, 0 < y, 0 < 12891634966*y^2+19613071879*y+16947294542, 0 < 1256597*y^2+1911761*y+1651926, 0 < 6310892468*y^2+9601263717*y+8296275330, 0 < 1401*y^2+2130*y+1840, 0 < 1-k, 0 < 1-m, 0 < 72927541996846438*y^2+110950482461140595*y+95870270479707846, 0 < 1-t]]

 

[s, k, n, p, m, t, y, x]

 

R := polynomial_ring

 

dec_5380 := piecewise(`and`(`and`(`and`(0 < x^3-2*x^2+3*x-1, 0 < x^3+2*x^2+x-1), x^3+x^2+x < 1), 0 < 3*x-1), [[s*x+((1-x)*y*m+(x-1)*y+x^2-x)*k = 0, (m*y^2-y^2-t+(1-x)*y+x)*k+(y+x)*t-y = 0, n+(1-x)*y*m+(x-1)*y+x^2-x = 0, p-m*y^2+y^2+(x-1)*y-x = 0, m*y-x-y+1 = 0, t*y^2+(x-1)*y^2+(2*x^2-2*x)*y+x^3-2*x^2+x = 0, (3*x-1)*y^2+(3*x^2-3*x)*y+x^3-2*x^2+x = 0, 0 < k, 0 < m, 0 < s, 0 < y, 0 < -6*x^6-9*x^5*y+20*x^5+27*x^4*y-27*x^4-32*x^3*y+19*x^3+17*x^2*y-7*x^2-3*x*y+x, 0 < 3*x^6+3*x^5*y-14*x^5-10*x^4*y+26*x^4+11*x^3*y-24*x^3-3*x^2*y+11*x^2-2*x*y-2*x+y, 0 < 6*x^5+9*x^4*y-17*x^4-18*x^3*y+17*x^3+11*x^2*y-7*x^2-2*x*y+x, 0 < y+x-1, 0 < 1-k, 0 < -m+1, 0 < t-s, 0 < 1-t]], [])

 

[s, k, n, p, m, t, x, y]

 

R := polynomial_ring

 

dec_5382 := piecewise(`and`(`and`(y^3-2*y^2+y < 1, 0 < y-1), 23*y^3-37*y^2+13*y-3 <> 0), [[-k*n+s*x = 0, (p-t)*k+(y+x)*t-y = 0, (y+x-1)*n+(-x*y+y)*m+x-y = 0, (y+x-1)*p-m*y^2-x+y = 0, m*y-1 = 0, t*y^2+x^2+(y-1)*x-y^2 = 0, x^3+(3*y-2)*x^2+(2*y^2-3*y+1)*x-y^3+y^2 = 0, 0 < k, 0 < s, 0 < x, 0 < -2*x^2*y^2-2*x*y^3+2*y^4+x^2*y+3*x*y^2-3*y^3-x*y+y^2, 0 < x^2*y^2+2*x*y^3+y^4-x^2*y-4*x*y^2-3*y^3+2*x*y+3*y^2-y, 0 < -x^2*y-x*y^2+y^3+x*y-y^2, 0 < y+x-1, 0 < 1-k, 0 < t-s, 0 < 1-t]], 23*y^3-37*y^2+13*y-3 = 0, [[-k*n+s*x = 0, (p-t)*k+(y+x)*t-y = 0, (y+x-1)*n+(-x*y+y)*m+x-y = 0, (y+x-1)*p-m*y^2-x+y = 0, m*y-1 = 0, t*y^2+x^2+(y-1)*x-y^2 = 0, (2377326*y^2-1587000*y+302588)*x^2+(390793*y^2+497766*y+138115)*x-507805*y^2+152032*y-109047 = 0, 23*y^3-37*y^2+13*y-3 = 0, 0 < k, 0 < m, 0 < s, 0 < x, 0 < y, 0 < 700112222844255556263586865*x*y^2-260269572171898884295316974*x*y-93795749047261033657544191*y^2+73822886321394794237709987*x+34866975665513154551125606*y-9877974587657378842117575, 0 < -26166721441919*x*y^2+9412709182291*x*y+53422638514257*y^2-3387596446782*x-21180373503698*y+6484087812711, 0 < 21236600258115*x*y^2-8079468597142*x*y-3053799376681*y^2+2340822678357*x+1387037467490*y-370794765921, 0 < y+x-1, 0 < 1-k, 0 < -m+1, 0 < t-s, 0 < 1-t]], [])

 

[s, k, n, p, m, t, x, y]

 

R := polynomial_ring

 

`Non-fatal error while reading data from kernel.`

(1)

NULL

I would like to get results like in dec_5334. I can easily go on working with this kind of form. In dec_5380 you can see a diffrent output. I dont see the point of giving me this output. the second line i basically epmty. and in the first line the solution is broken into peaces. when a certain solution just works under some inequalitites, why dont they put those four inequalities inside of the list in front of it? Is there a workaround for the "normal" output? Or is there a way to read off the lines from this kind of structure, with the open { in front ?

The same problem appears in dec_5382. WHy dont give me a list with to lists of equations and inequalities to show me both solutions?
In the last example dec_5382_record you can see the output when you change the corresponding option in RealTrinagularize. But here I again have the problem that I dont know how to read of the equations and inequalities from the open curly bracket.

If anyone could help me, I would be very glad. Thank yu in advance.

Regards

Felix

Download Output_of_RegularChains.mw

Hey Guys, 

I have to solve multiple system of equations under some restrictions given as inequalities. Sometimes solve is not able to find the result in houres so I tryd to break the problem in half. So in the first step I just want to solve my 8 polynomial equations with 8 variables and in a second step I want so take the solutions, bring them together with the set of inequalities and solve it again. Since also some sets of equations are to hard for the simple solve command I got the advice from people of this plattform to try PolynomialSystem with the diffrent engines. However I have the feeling they make misstakes and now Im not sure If I can trust my results. 

Attached you can find a file with an example. In the beginning I solve equations and restrictions together and there is a solutions. Then I tryd to solve only the equations with PolynomialSystem and the the four known engines and the eniges traditional and backsolve dont find the solution which as we saw before exist. When a soultions holds under restrictions it should always appear if I omit the restirctions. When I use the enige triade and groebner then the right solution is there. 
However in some other cases it feels the other way round.
So to me it looks like no matter which engine I take, I can never 100% trust my results. Did I something wrong? Whats the reason for those mistakes? Furthermore backsolve gives me 7 solutions, but solutions 2 and 7 are the same. I also recognized, that there is a diffrence between putting in the variable vars as a list or a set. What happens, if I dont specify which engine should be used?

I am happy about any advice. Thank you in advance.

Regards

Felix

restart; equations := {-y*(m-p) = 0, ((-x-y+1)*k+x)*n+s*y-t = 0, (k-x-y)*t-k*p+y = 0, (-m+n+y)*x+m-1 = 0, -(x+y-1)*(p-t)*k+(-x-y+1)*t+x*p = 0, y^2+(-m-1)*y+1+x*(p-1) = 0, (-x-y+1)*t+(-m+1)*x+y*n+m-1 = 0, -k*n+s*x = 0}; restrictions := {0 < k, 0 < m, 0 < s, 0 < x, 0 < y, 0 < n+(t-1)*p, 0 < (m*y-1)*n+(1-p)*(m*x-m+1), 0 < (m*x-m-t+1)*p+m*y*(t-n), 1 < x+y, k < 1, m < 1, s < t, t < 1}; vars := indets(equations); evalf(solve(`union`(equations, restrictions), vars)); Sol_w := SolveTools:-PolynomialSystem(equations, vars); Sol_traditional := SolveTools:-PolynomialSystem(equations, vars, engine = traditional); nops([Sol_traditional]); Sol_backsolve := SolveTools:-PolynomialSystem(equations, vars, engine = backsolve); nops([Sol_backsolve]); Sol_triade_1 := SolveTools:-PolynomialSystem(equations, vars, engine = triade); nops([Sol_triade_1]); Sol_groebner := SolveTools:-PolynomialSystem(equations, vars, engine = groebner); nops([Sol_groebner])

{-y*(m-p) = 0, ((-x-y+1)*k+x)*n+s*y-t = 0, (k-x-y)*t-k*p+y = 0, (-m+n+y)*x+m-1 = 0, -(x+y-1)*(p-t)*k+(-x-y+1)*t+x*p = 0, y^2+(-m-1)*y+1+x*(p-1) = 0, (-x-y+1)*t+(-m+1)*x+y*n+m-1 = 0, -k*n+s*x = 0}

 

{k, m, n, p, s, t, x, y}

 

{k = 0.536796024e-1, m = .241141717, n = .54019322, p = .241141717, s = 0.35770767e-1, t = .4477103163, x = .8106439941, y = .6370663217}

 

{k = 1, m = m, n = 1, p = 0, s = 1, t = 1, x = 1, y = 0}, {k = 1, m = 1, n = 0, p = 1, s = t, t = t, x = 0, y = 1}, {k = k, m = 1, n = 0, p = 1, s = 1, t = 1, x = 0, y = 1}, {k = 1, m = 1, n = 0, p = 1, s = 0, t = 0, x = x, y = 1}, {k = 1/3, m = -1, n = 3, p = -1, s = 2, t = 2, x = 1/2, y = 0}, {k = 1/3, m = -1, n = 2, p = -1, s = 2/3, t = 2, x = 1, y = -1}, {k = -(1/9)*RootOf(_Z^5-4*_Z^4-9*_Z^3+10*_Z^2+6*_Z-5)^4+(2/9)*RootOf(_Z^5-4*_Z^4-9*_Z^3+10*_Z^2+6*_Z-5)^3+(16/9)*RootOf(_Z^5-4*_Z^4-9*_Z^3+10*_Z^2+6*_Z-5)^2+(1/9)*RootOf(_Z^5-4*_Z^4-9*_Z^3+10*_Z^2+6*_Z-5)-7/9, m = (4/3)*RootOf(_Z^5-4*_Z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+1/3, x = (1/3)*RootOf(_Z^5-4*_Z^4-9*_Z^3+10*_Z^2+6*_Z-5)^4-(4/3)*RootOf(_Z^5-4*_Z^4-9*_Z^3+10*_Z^2+6*_Z-5)^3-(8/3)*RootOf(_Z^5-4*_Z^4-9*_Z^3+10*_Z^2+6*_Z-5)^2+(4/3)*RootOf(_Z^5-4*_Z^4-9*_Z^3+10*_Z^2+6*_Z-5)+4/3, y = RootOf(_Z^5-4*_Z^4-9*_Z^3+10*_Z^2+6*_Z-5)}

 

{k = 1, m = m, n = 1, p = 0, s = 1, t = 1, x = 1, y = 0}, {k = 1/3, m = -1, n = 3, p = -1, s = 2, t = 2, x = 1/2, y = 0}, {k = k, m = 1, n = 0, p = 1, s = 1, t = 1, x = 0, y = 1}, {k = 1, m = 1, n = 0, p = 1, s = s, t = s, x = 0, y = 1}, {k = 1/3, m = -1, n = 2, p = -1, s = 2/3, t = 2, x = 1, y = -1}, {k = 1, m = 1, n = 0, p = 1, s = 0, t = 0, x = x, y = 1}

 

6

 

{k = 1, m = m, n = 1, p = 0, s = 1, t = 1, x = 1, y = 0}, {k = 1/3, m = -1, n = 3, p = -1, s = 2, t = 2, x = 1/2, y = 0}, {k = k, m = 1, n = 0, p = 1, s = 1, t = 1, x = 0, y = 1}, {k = 1, m = 1, n = 0, p = 1, s = s, t = s, x = 0, y = 1}, {k = 1/3, m = -1, n = 2, p = -1, s = 2/3, t = 2, x = 1, y = -1}, {k = 1, m = 1, n = 0, p = 1, s = 0, t = 0, x = x, y = 1}, {k = 1/3, m = -1, n = 3, p = -1, s = 2, t = 2, x = 1/2, y = 0}

 

7

 

{k = 1, m = 1, n = 0, p = 1, s = 0, t = 0, x = x, y = 1}, {k = 1, m = m, n = 1, p = 0, s = 1, t = 1, x = 1, y = 0}, {k = k, m = 1, n = 0, p = 1, s = 1, t = 1, x = 0, y = 1}, {k = 1, m = 1, n = 0, p = 1, s = t, t = t, x = 0, y = 1}, {k = -(1/9)*RootOf(_Z^5-4*_Z^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58/9, t = (1/3)*RootOf(_Z^5-4*_Z^4-9*_Z^3+10*_Z^2+6*_Z-5)^4-(4/3)*RootOf(_Z^5-4*_Z^4-9*_Z^3+10*_Z^2+6*_Z-5)^3-(8/3)*RootOf(_Z^5-4*_Z^4-9*_Z^3+10*_Z^2+6*_Z-5)^2+(7/3)*RootOf(_Z^5-4*_Z^4-9*_Z^3+10*_Z^2+6*_Z-5)+1/3, x = (1/3)*RootOf(_Z^5-4*_Z^4-9*_Z^3+10*_Z^2+6*_Z-5)^4-(4/3)*RootOf(_Z^5-4*_Z^4-9*_Z^3+10*_Z^2+6*_Z-5)^3-(8/3)*RootOf(_Z^5-4*_Z^4-9*_Z^3+10*_Z^2+6*_Z-5)^2+(4/3)*RootOf(_Z^5-4*_Z^4-9*_Z^3+10*_Z^2+6*_Z-5)+4/3, y = RootOf(_Z^5-4*_Z^4-9*_Z^3+10*_Z^2+6*_Z-5)}, {k = 1/3, m = -1, n = 2, p = -1, s = 2/3, t = 2, x = 1, y = -1}, {k = 1/3, m = -1, n = 3, p = -1, s = 2, t = 2, x = 1/2, y = 0}

 

7

 

{k = 1, m = m, n = 1, p = 0, s = 1, t = 1, x = 1, y = 0}, {k = 1, m = 1, n = 0, p = 1, s = t, t = t, x = 0, y = 1}, {k = k, m = 1, n = 0, p = 1, s = 1, t = 1, x = 0, y = 1}, {k = 1, m = 1, n = 0, p = 1, s = 0, t = 0, x = x, y = 1}, {k = 1/3, m = -1, n = 3, p = -1, s = 2, t = 2, x = 1/2, y = 0}, {k = 1/3, m = -1, n = 2, p = -1, s = 2/3, t = 2, x = 1, y = -1}, {k = -(1/9)*RootOf(_Z^5-4*_Z^4-9*_Z^3+10*_Z^2+6*_Z-5)^4+(2/9)*RootOf(_Z^5-4*_Z^4-9*_Z^3+10*_Z^2+6*_Z-5)^3+(16/9)*RootOf(_Z^5-4*_Z^4-9*_Z^3+10*_Z^2+6*_Z-5)^2+(1/9)*RootOf(_Z^5-4*_Z^4-9*_Z^3+10*_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^4*(1/3)-20*RootOf(_Z^5-4*_Z^4-9*_Z^3+10*_Z^2+6*_Z-5)^3*(1/3)-17*RootOf(_Z^5-4*_Z^4-9*_Z^3+10*_Z^2+6*_Z-5)^2*(1/3)+21*RootOf(_Z^5-4*_Z^4-9*_Z^3+10*_Z^2+6*_Z-5)-28/3, s = -8*RootOf(_Z^5-4*_Z^4-9*_Z^3+10*_Z^2+6*_Z-5)^4*(1/9)+40*RootOf(_Z^5-4*_Z^4-9*_Z^3+10*_Z^2+6*_Z-5)^3*(1/9)+35*RootOf(_Z^5-4*_Z^4-9*_Z^3+10*_Z^2+6*_Z-5)^2*(1/9)-127*RootOf(_Z^5-4*_Z^4-9*_Z^3+10*_Z^2+6*_Z-5)*(1/9)+58/9, t = (1/3)*RootOf(_Z^5-4*_Z^4-9*_Z^3+10*_Z^2+6*_Z-5)^4-4*RootOf(_Z^5-4*_Z^4-9*_Z^3+10*_Z^2+6*_Z-5)^3*(1/3)-8*RootOf(_Z^5-4*_Z^4-9*_Z^3+10*_Z^2+6*_Z-5)^2*(1/3)+7*RootOf(_Z^5-4*_Z^4-9*_Z^3+10*_Z^2+6*_Z-5)*(1/3)+1/3, x = (1/3)*RootOf(_Z^5-4*_Z^4-9*_Z^3+10*_Z^2+6*_Z-5)^4-4*RootOf(_Z^5-4*_Z^4-9*_Z^3+10*_Z^2+6*_Z-5)^3*(1/3)-8*RootOf(_Z^5-4*_Z^4-9*_Z^3+10*_Z^2+6*_Z-5)^2*(1/3)+4*RootOf(_Z^5-4*_Z^4-9*_Z^3+10*_Z^2+6*_Z-5)*(1/3)+4/3, y = RootOf(_Z^5-4*_Z^4-9*_Z^3+10*_Z^2+6*_Z-5)}))

{k = 0.536796024e-1, m = .241141717, n = .54019322, p = .241141717, s = 0.35770767e-1, t = .4477103163, x = .8106439941, y = .6370663217}, {k = .7943583912, m = 1.011543377, n = .16794280, p = 1.011543377, s = -.463558437, t = -.4040771797, x = -.287788440, y = .8837112597}, {k = -5.038767243, m = 3.694058367, n = 0.9373027e-1, p = 3.694058367, s = .299187114, t = 2.728412223, x = -1.578565716, y = 5.306977937}, {k = .2033642547, m = -26.40026363, n = -63.64948932, p = -26.40026363, s = 17.99511944, t = -2.562622110, x = -.719307867, y = -.8433142428}, {k = 2.542920564, m = -.546480183, n = 1.84762297, p = -.546480183, s = 1.244592174, t = .7905767063, x = 3.775017982, y = -1.984441276}

(2)
 

NULL

Can_I_trust_the_diffrent_eniges_of_Polynomial_Systems.mw

Hey guys, 

in the attached file you can see my problem. Since Maple was not able to calculate my set with 8 equations, 8 variables and 13 inequalities I had to split in into two steps. Here you can see how I try to take one solutions of what I got with solve onto 8 equations with 8 variables and to solve this together with my inequalities. It never was a problem before. So ow I get a weird error I dont understand.

restart; inequalities := {0 < k, 0 < m, 0 < s, 0 < x, 0 < y, 0 < n+(p-1)*s, 0 < (m*y-1)*n+(m*x-m+1)*(1-p), 0 < (m*x-m-s+1)*p+m*y*(s-n), 1 < x+y, k < 1, m < 1, s < t, t < 1}; solve(`union`({k = (x*(1-sqrt(x))+sqrt(x)-2*x)/((x^2-3*x+1)*x), m = (sqrt(x)+x)/(x-1), n = (sqrt(x)+x)/(x-1), p = (-1-sqrt(x))/(x-1), s = (-1-sqrt(x))/(x-1), t = (2*x*(1-sqrt(x))+1+sqrt(x)-5*x)/(x^2-3*x+1), y = 1-sqrt(x)}, inequalities)); inequalities := {0 < k, 0 < m, 0 < s, 0 < x, 0 < y, 0 < n+(p-1)*s, 0 < (m*y-1)*n+(m*x-m+1)*(1-p), 0 < (m*x-m-s+1)*p+m*y*(s-n), 1 < x+y, k < 1, m < 1, s < t, t < 1}

Error, (in unknown) invalid input: SolveTools:-Inequality expects its 1st argument, eqns, to be of type {list, set}({`<`, `<=`, `=`}), but received [p < 1, -p < 0, And(2*argument((p-1)/p) <= Pi,-Pi < 2*argument((p-1)/p))]

 

restart; solve(`union`({k = (x*(1-sqrt(x))+sqrt(x)-2*x)/((x^2-3*x+1)*x), m = (sqrt(x)+x)/(x-1), n = (sqrt(x)+x)/(x-1), p = (-1-sqrt(x))/(x-1), s = (-1-sqrt(x))/(x-1), t = (2*x*(1-sqrt(x))+1+sqrt(x)-5*x)/(x^2-3*x+1), y = 1-sqrt(x)}, {0 < x, 0 < y}))

{k = p^3/(p^3-2*p+1), m = -p+1, n = -p+1, s = p, t = (3*p-2)*p/(p^2+p-1), x = (p^2-2*p+1)/p^2, y = 1-((p^2-2*p+1)/p^2)^(1/2), 3/2+(1/2)*5^(1/2) < p}, {k = p^3/(p^3-2*p+1), m = -p+1, n = -p+1, s = p, t = (3*p-2)*p/(p^2+p-1), x = (p^2-2*p+1)/p^2, y = 1-((p^2-2*p+1)/p^2)^(1/2), 1 < p, p < 3/2+(1/2)*5^(1/2)}, {k = p^3/(p^3-2*p+1), m = -p+1, n = -p+1, s = p, t = (3*p-2)*p/(p^2+p-1), x = (p^2-2*p+1)/p^2, y = 1-((p^2-2*p+1)/p^2)^(1/2), 1/2 < p, p < (1/2)*5^(1/2)-1/2}, {k = p^3/(p^3-2*p+1), m = -p+1, n = -p+1, s = p, t = (3*p-2)*p/(p^2+p-1), x = (p^2-2*p+1)/p^2, y = 1-((p^2-2*p+1)/p^2)^(1/2), p < 1, (1/2)*5^(1/2)-1/2 < p}

(1)

restart; solve(`union`({k = (x*(1-sqrt(x))+sqrt(x)-2*x)/((x^2-3*x+1)*x), m = (sqrt(x)+x)/(x-1), n = (sqrt(x)+x)/(x-1), p = (-1-sqrt(x))/(x-1), s = (-1-sqrt(x))/(x-1), t = (2*x*(1-sqrt(x))+1+sqrt(x)-5*x)/(x^2-3*x+1), y = 1-sqrt(x)}, {0 < s, 0 < x, 0 < y}))

Error, (in unknown) invalid input: SolveTools:-Inequality expects its 1st argument, eqns, to be of type {list, set}({`<`, `<=`, `=`}), but received [-p < 0, And(2*argument((p-1)/p) <= Pi,-Pi < 2*argument((p-1)/p))]

 
 

NULL

So my question is why does this error occur? And what does it mean? the "but received..." argument in the error makes no sense to me. Why does it happen when I add 0<s but 0<x,0<y is okay?

Thank you in advance

Download Why_this_error.mw

Hey guys, 

I am working with Maple 2024. I have to solve many systems of polynomial equations symbolically. I have 8 equations, 8 variables and 14 inequalities (which also implies that I only want real solutions). In my opinion the equations are not too difficult. However there is a maximum of up to 4 variables multiplied together which could be a problem. Since I have to solve thousand of those systems I need to reduce the amount of time needed. While many of the systmes only take a few seconds, there are a few systems (10%) that need way to much time (multiple houres, sometimes I stop the process before the computation is over). 

In my attached file you can see the kind of equations I have. While "equations_500 union inequalities" only needs a few seconds, "equations_1162 union inequalities" needs more than 2 houres (than I stopped). 
I also tryed a second approach. At first I just solved the 8 equations. Then I took every solution, combined it with the set of inequalities and solved it again. Not only does it not work for equations_1162 eather, but it also sometimes brings the warning "solutions may have been lost" which is not really convincing. For that process I also used "with(RealDomain) since I only want to find real solutions when solving the eight equations in the first step. 

I figured out, that for the normal and simpel solve command it cqn help to rename the variables so the lexigraphic order as the initial situation playes a role. But when I understood the pages explaining SolveTools or Groebner, this optimal order of the variables is completed automatically inside these environments. 

So my question is: Is there any way to accelerate the process (in this case for equations_1162)? Waiting some minutes isfine, but I cant wait houres for one solution. 

Thank you in advance. 

solve_system_of_polynomials_with_inequalities.mw

restart;

{(-x-y+1)*t+n*y^2 = 0, -t*(x+y-1)*k+x = 0, (x+y-1)*(p-s)*k-p*(x-1) = 0, m*y^2+(n*x-m-t)*y-t*(x-1) = 0, n*x^2+(m*y-n-s)*x-s*(y-1) = 0, y*(n*x-n-s+1)+(1-x)*s+p*x-1 = 0, (x+y-1)*(p-s)*k+(-x-y+1)*p-m*x+s*y = 0, ((-x-y+1)*k+y)*t-m*y+m+x-1 = 0}

{0 < k, 0 < m, 0 < n, 0 < p, 0 < x, 0 < y, 0 < (-m*x+p)*t+(s-p)*(m*y-m+1), 0 < (n*x-n-p+1)*t+n*y*(p-s), 0 < (m*x-n*x+n-1)*t+(m*y-n*y-m+1)*s+(n*x-n+1)*(m*y-m+1)-n*y*m*x, 1 < x+y, k < 1, m < 1, n < 1, p < 1}

"solve(equalities union inequalities)", {k = .487116703, m = .656557610, n = .3562602382, p = .1863581607, s = .372716320, t = .8665379799, x = .4642487806, y = 1.635592831}

"------------------------------------------------------------------------------------------------------------------------------"

"solve(equalities)", {k = k, m = m, n = 0., p = 0., s = 0., t = 1., x = 0., y = 1.}, {k = 1., m = 0., n = 1., p = 0., s = 0., t = 1., x = 1., y = 1.}, {k = 2.130395435, m = 1.469396425, n = -1.299895929, p = 2.299895929, s = .8304995051, t = .1695004949, x = -.3611030805, y = .3611030805}, {k = .893308015, m = -1.942064138, n = .8632249760, p = -1.307713373, s = -2.615426746, t = 1.427148086, x = .5879938248, y = .8732201900}

"solve(solve(equalities) union inequalities"

"solve(solve(equalities) union inequalities"

"solve(solve(equalities) union inequalities"

"solve(solve(equalities) union inequalities"

 

NULL

Download problems_with_solve_15.10.24.mw

Hey guys, 

I'm working with Maple to solve sets of 8 equations and 14 inequalities. I use the command solve to get values for my 8 variables. Often there is no solution, sometimes we have one single solution or like a parametric solution. However sometimes this procedure fails to finish the calculation, that means I stop the calculation after a certain time (multiple houres). So now I am looking for some other ways to get the solution. For example I try a two-stage solve-attemp. In the first round I use the solve coammand only for the set of 8 equations. In the second round I take each of the solutions I found in the step before and combine them with the set of inequalities. Then I use solve again for this set. 

However I found out that the two ways I described above lead to diffrent solutions. In my opinion the solutions of solve(equations union inequalities) should be a subset of solve(equations), since all the solutions we find with equations union inequalities has to fullfill the 8 equations we want put into solve(equations). As you can see in the attached file that is not the case. The sets of solutions of solve(equalities union inequalites) and the set of solutions of solve(equalities) is disjoint, so no subset. 
Since I have disjoint sets in the step between, the solutions of solve(equations union inequalities) and the solutions of solve((solve equations) union inequalities) are disjoint as well, so I think the problem is already in the step before. 

I would be really glad if anyone can help me. Either explain me, where my argumentation above went wrong or why I find those solutions which dont fit together. 

Regards
Felix

1 2 Page 1 of 2