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}}
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.