constantp([]) --> true and polynomialp([], [x]) --> true
Subject: constantp([]) --> true and polynomialp([], [x]) --> true
From: Barton Willis
Date: Wed, 21 Aug 2013 19:12:01 +0000
Since constantp([]) is true, polynomialp([], [x]) is also true (by default, polynomialp requires that polynomial coefficients satisfy constantp).
I doubt that is what users expect. The user documentation for constantp says (in part)
An expression is considered a constant expression if its arguments are numbers ...
Hum---the arguments of f(42) are numbers, but constantp(f(42)) isn't a constant.
--Barton