[R] a really simple question on polynomial multiplication

2008-10-15 Thread Erin Hodgess
Dear R people: Is there a way to perform simple polynomial multiplication; that is, something like (x - 3) * (x + 3) = x^2 - 9, please? I looked in poly and polyroot and expression. There used to be a package that had this, maybe? thanks, Erin -- Erin Hodgess Associate Professor Department

Re: [R] a really simple question on polynomial multiplication

2008-10-15 Thread Jorge Ivan Velez
Dear Erin, Yes. Take a look at page 13 in [1]. HTH, Jorge [1] http://cran.r-project.org/web/packages/Ryacas/vignettes/Ryacas.pdf On Wed, Oct 15, 2008 at 5:44 PM, Erin Hodgess [EMAIL PROTECTED]wrote: Dear R people: Is there a way to perform simple polynomial multiplication; that is,

Re: [R] a really simple question on polynomial multiplication

2008-10-15 Thread Moshe Olshansky
Hodgess [EMAIL PROTECTED] Subject: [R] a really simple question on polynomial multiplication To: R Help r-help@r-project.org Received: Thursday, 16 October, 2008, 8:44 AM Dear R people: Is there a way to perform simple polynomial multiplication; that is, something like (x - 3) * (x + 3) = x^2

Re: [R] a really simple question on polynomial multiplication

2008-10-15 Thread Rolf Turner
On 16/10/2008, at 10:44 AM, Erin Hodgess wrote: Dear R people: Is there a way to perform simple polynomial multiplication; that is, something like (x - 3) * (x + 3) = x^2 - 9, please? I looked in poly and polyroot and expression. There used to be a package that had this, maybe? The

Re: [R] a really simple question on polynomial multiplication

2008-10-15 Thread Rolf Turner
On 16/10/2008, at 2:27 PM, Moshe Olshansky wrote: Hi Rolf, Thank you for making me aware of the existence of PolynomF package. By the way, your solution needs a small modification: a - polynom(c(-3,1)) and not polynom(-3,1) and similar for b. Indeed; I typed the code into the email