Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2002

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: PolynomialQ ?

  • To: mathgroup at
  • Subject: [mg34911] Re: PolynomialQ ?
  • From: lalu_bhatt at (Bhuvanesh)
  • Date: Wed, 12 Jun 2002 02:16:00 -0400 (EDT)
  • References: <ae4en8$9bc$>
  • Sender: owner-wri-mathgroup at

"Juan" <erfa11 at> wrote:

> Hi,I tried to check is a polynomial have a variable, ussing the function 
> PolynomialQ.
> In[1]:=p = x^3 - 2*x^2 + x - 1;
> In[2]:=PolynomialQ[p, x]
> Out[2]=True
> In[3]:=PolynomialQ[p, y]
> Out[3]=True
> In[4]:=PolynomialQ[p, z^2]
> Out[4]=True
> In[5]:=PolynomialQ[p, {u, v}]
> Out[5]=True
> What is the thing I am doing wrong?

The polynomial in x is a constant in y, in z^2, and in {u,v}, and is
therefore a polynomial in those variables as well. If you want no
other variables to be present, you might look into FreeQ:

Wolfram Research.

  • Prev by Date: Re: Line and Text in Graphics
  • Next by Date: Re: Curl
  • Previous by thread: PolynomialQ ?
  • Next by thread: Re: PolynomialQ ?