constantp([]) --> true and polynomialp([], [x]) --> true
Subject: constantp([]) --> true and polynomialp([], [x]) --> true
From: Barton Willis
Date: Thu, 22 Aug 2013 19:44:30 +0000
> I dunno -- from the point of polynomialp, [] isn't all that different
> from foo() or another no-arguments expression. What trouble does it
> cause for polynomialp([], [x]) to return true?
Oh, I was goofing around with code that needs to decide when it would be OK to dispatch Grobner code.
I thought using the defaults for polynomialp would be OK---oops, they aren't. Well actually for the Grobner
code I need rational coefficients, not just simply numeric coefficients. No particular problem, but it took a bit
of testing before I found this bug.
-bw