Re: [R] evaluate polynomial

2009-05-20 Thread Rolf Turner
On 21/05/2009, at 11:35 AM, Kon Knafelman wrote: Hey guys, sorry im drawing a mental blank. i have coded the function: y <- function(x) 6*x^4-(1*x^2)^3 How do i evaluate this function for a given x? i know this is a ridiculous question, but thanks anyway > y(1.6) or > x <- 1.6

Re: [R] evaluate polynomial

2009-05-20 Thread Peter Alspach
g > Subject: [R] evaluate polynomial > > > Hey guys, sorry im drawing a mental blank. > > > > i have coded the function: > > > > y <- function(x) 6*x^4-(1*x^2)^3 > > > > How do i evaluate this function for a given x? &

[R] evaluate polynomial

2009-05-20 Thread Kon Knafelman
Hey guys, sorry im drawing a mental blank. i have coded the function: y <- function(x) 6*x^4-(1*x^2)^3 How do i evaluate this function for a given x? i know this is a ridiculous question, but thanks anyway _ [[elided