Ask Your Question

Getting the error message: The dimension of the ideal is 1, but it should be 0

asked 2017-12-31 23:24:09 +0200

david_c gravatar image

I'm trying to solve a system of 5 polynomial equations.

Here's the code I tried to run:

P.<b, qa, qb, qc, qd>=PolynomialRing(QQ,order='degrevlex')
eq5= P(qa^2+qb^2+qc^2+qd^2-1)
I = Ideal(eq1, eq2, eq3, eq4, eq5)

At the last line of code:


I get this error:

The dimension of the ideal is 1, but it should be 0

Anyone knows why? or alternatively, how to get the solutions of the equations?


edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2018-01-01 03:12:13 +0200

david_c gravatar image

I actually understood my mistake. I accidently wrote twice the same equation (eq2=-eq3).

So I guess that the meaning of the dimension of ideal (at least in this case) is the number of equations that are linear combination of the other equations (therefore should be zero and not positive number).

I'm writing this here in case anyone else gets the same error in the future.

edit flag offensive delete link more



The codimension is not the number linearly independent equations in general. You have variety of dimension 2 in C^4 that can not be obtained with 2 equations. You can have a look at algebraic dimension (wikipedia).

vdelecroix gravatar imagevdelecroix ( 2018-01-01 12:11:05 +0200 )edit

I will look at it thanks. It was just guess. The reason I said that is that if I write: I = Ideal(eq1) I.dimension() I get 4. and if I define the ideal with 2 equations the dimension is 3 and so on.

david_c gravatar imagedavid_c ( 2018-01-01 14:15:44 +0200 )edit

You are mostly right of course!

vdelecroix gravatar imagevdelecroix ( 2018-01-01 19:25:41 +0200 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2017-12-31 23:24:09 +0200

Seen: 619 times

Last updated: Jan 01 '18