[R] evaluate polynomial
Rolf Turner
r.turner at auckland.ac.nz
Thu May 21 01:47:19 CEST 2009
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
> y(x)
or
> fred <- 1.6
> y(fred)
cheers,
Rolf Turner
######################################################################
Attention:\ This e-mail message is privileged and confid...{{dropped:9}}
More information about the R-help
mailing list