error message "? ideal not zero-dimensional"
machielk · Fri Mar 10, 2017 11:59 am
Hello,
I execute the following code:
I get the error message:
Why? What does that mean? If I try a different set of polynomials, e.g.
the script works fine. However, with the previous set and different software, I do find solutions, so it's not a set without solutions.
By the way, another question is: when I want to print the solutions, I could only find the method
However, this gives all complex solutions. Is there a way to print out only the real solutions?
Many thanks,
Machiel
I execute the following code:
Code:
ring s = real,(x,y,z),dp;
poly f = 723.056*x^2 + 12470.8*x*y - 86766.7*x + 7923.06*y^2 - 748246*y - 2876.94*z^2 + 8630.83*z + 2.59653e+06;
poly g = 10806.8*x^2 + 648407*x - 3593.22*y^2 + 373419*y - 3593.22*z^2 + 10779.7*z + 16315;
poly h = -782.305*x^2 - 12470.8*x*y - 694938*x + 6417.69*y^2 + 292823*y - 4382.31*z^2 + 13146.9*z - 2.82616e+06;
ideal i_ideal=f,g,h;
option(redSB);
LIB "solve.lib";
def T=solve(i_ideal, 5, 0, "nodisplay");
poly f = 723.056*x^2 + 12470.8*x*y - 86766.7*x + 7923.06*y^2 - 748246*y - 2876.94*z^2 + 8630.83*z + 2.59653e+06;
poly g = 10806.8*x^2 + 648407*x - 3593.22*y^2 + 373419*y - 3593.22*z^2 + 10779.7*z + 16315;
poly h = -782.305*x^2 - 12470.8*x*y - 694938*x + 6417.69*y^2 + 292823*y - 4382.31*z^2 + 13146.9*z - 2.82616e+06;
ideal i_ideal=f,g,h;
option(redSB);
LIB "solve.lib";
def T=solve(i_ideal, 5, 0, "nodisplay");
I get the error message:
Quote:
? ideal not zero-dimensional
Why? What does that mean? If I try a different set of polynomials, e.g.
Quote:
poly f = 4*x^2 + 2*x*y + 3*x*z + 2*y*z + y^2 + z^2 - 42;
poly g = 6*x^2 + x*y - x*z - y*z + y^2 + z^2 - 12;
poly h = x^2 - x*y - 2*y^2 - 3*z^2 + 36;
poly g = 6*x^2 + x*y - x*z - y*z + y^2 + z^2 - 12;
poly h = x^2 - x*y - 2*y^2 - 3*z^2 + 36;
the script works fine. However, with the previous set and different software, I do find solutions, so it's not a set without solutions.
By the way, another question is: when I want to print the solutions, I could only find the method
Code:
setring T;
SOL;
SOL;
However, this gives all complex solutions. Is there a way to print out only the real solutions?
Many thanks,
Machiel