MathGroup Archive 2011

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

Search the Archive

quadp


On 1/3/2011 12:28 PM, Andrzej Kozlowski wrote:
>
> I forgot one obvious matter. A better way to solve this problem is:
>
> quadp[f_, x_] /; PolynomialQ[f, x]&&  Exponent[f, x] == 2 :=
>   qq @@ CoefficientList[f, x]
>
> quadp[5 + 4*x + 3*x^2, x]
>
> qq(5,4,3)
>
> quadp[r*x^2 + s*x^2, x]
>
> qq(0,0,r+s)

yours does not work for quadp[(x^3+x)/x, x], which I think is a quadratic.
my program agrees with me.




  • Prev by Date: Re: dissabling code segments
  • Next by Date: Re: about the use of button
  • Previous by thread: show curves simultaneously
  • Next by thread: Re: quadp