[R] polynomial question
Erin Hodgess
erinm.hodgess at gmail.com
Wed Apr 20 20:41:57 CEST 2011
Dear R People:
Suppose I have (x-1)*(x-2) and would like to produce x^2 - 3x + 2.
I have tried
> polynomial(c(1,1)*c(2,1))
2 + x
from the polynom library, but as you can see, that doesn't do it.
Is there a function to do this please? I'm sure that I've done this
before, but I can't remember the correct way.
Thanks,
Erin
--
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: erinm.hodgess at gmail.com
More information about the R-help
mailing list