MathGroup Archive 1999

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

Search the Archive

Re: PolynomialQ (wrong) behavior ?


Drago Ganic <drago.ganic at in2.hr> wrote in message
news:7oojic$i2c at smc.vnet.net...
> Hi,
>
> f = 2x +1
>
> PolynomialQ [ f, x ]
> True
>
> That's OK. But why the following
>
> PolynomialQ [ f, y ]
> True
>
> PolynomialQ [ f, Sin[x] ]
> True
>
> Greetings,
> Drago Ganic
>

Drago:

Formally, f is a polynomial in Sin[x] with constant term f.

Coefficient[ 2x + 1, Sin[x] , 0]

1 + 2 x

CoefficientList[ 2x + 1, Sin[x] ]

{1 + 2 x}

Also note

Series[2x + 1 + 3(Sin[x] + 1)^4, { Sin[x], 0, 3}] // Normal

4 + 2*x + 12*Sin[x] + 18*Sin[x]^2 + 12*Sin[x]^3

Allan
---------------------
Allan Hayes
Mathematica Training and Consulting
Leicester UK
www.haystack.demon.co.uk
hay at haystack.demon.co.uk
Voice: +44 (0)116 271 4198
Fax: +44 (0)870 164 0565




  • Prev by Date: Short Doesn't Work
  • Next by Date: Re: Transient Heat Transfer
  • Previous by thread: Re: PolynomialQ (wrong) behavior ?
  • Next by thread: Re: PolynomialQ (wrong) behavior ?