Skip to content
This repository has been archived by the owner on Mar 4, 2023. It is now read-only.

member-p function fails #6

Open
davazp opened this issue May 16, 2011 · 1 comment
Open

member-p function fails #6

davazp opened this issue May 16, 2011 · 1 comment

Comments

@davazp
Copy link

davazp commented May 16, 2011

If we eval the following chunk of code in the cl-buchberger package:

(defvar f (make-polynomial '((1 1 0))))    ;  f = x
(defvar g (make-polynomial '((1 1 0) (1 0 1))))  ;  g = x+y
(defvar i (make-ideal (list f g)))
(member-p (ring* g g) i)

a simple-error is signaled:

There is no applicable method for the generic function
  #<STANDARD-GENERIC-FUNCTION RING-ZERO-P (2)>
when called with arguments
  (#(#<POLYNOMIAL x> #<POLYNOMIAL x+y>)).
   [Condition of type SIMPLE-ERROR]

In fact, though I patched this little bug, the member-p function assumes the generators of ideal are a Groebner basis since the last form evals to nil. So, I think it would fine to normalize ideals computing the Groebner basis when the ideal is initialized.

@jmbr
Copy link
Owner

jmbr commented May 18, 2011

Thank you for noticing this. I'll fix it ASAP.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants