On Feb 21, 9:30 am, davidp <dav...@reed.edu> wrote:
> Hi,
Hi David,
> Singular's hilb command does not work as expected:
>
> sage: R = singular.ring(0,'(x,y,z)','dp')
> sage: I = singular.ideal(['x^3-y^2*z','z^2-x*y'])
> sage: I.hilb()
> `sage90`
>
> Could someone please explain this?
Why are you using Singular directly? I.e. no accounting for the term
ordering I would do something like
sage: P.<x,y,z>=QQ[]
sage: I=P.ideal(x^3-y^2*z,z^2-x*y)
sage: I.hilbert_series()
(t^3 + 2*t^2 + 2*t + 1)/(-t + 1)
should use either Singular or libSingular.
> Thanks,
> Dave
While I looked at ideal's docstring I noticed plenty of construct like
sage: R, x = PolynomialRing(ZZ, 'x').objgen()
Shouldn't we get those cleaned up to read
sage: R.<x>=ZZ[]
or am I missing the point? I have seen too many people use the above
old objgen() constuct and I find it rather hideous.
Cheers,
Michael
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---