Tena koe Kon
y(1)
y(2) and so on. Or even y(1:5).
HTH ...
Peter Alspach
> -----Original Message-----
> From: r-help-bounces at r-project.org
> [mailto:r-help-bounces at r-project.org] On Behalf Of Kon Knafelman
> Sent: Thursday, 21 May 2009 11:35 a.m.
> To: r-help at r-project.org
> 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?
>
>
>
> i know this is a ridiculous question, but thanks anyway
>
> _________________________________________________________________
> [[elided Hotmail spam]]
>
> [[elided Hotmail spam]]
> =Domain_tagline&_m=EXT
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org 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.
>
The contents of this e-mail are confidential and may be subject to legal
privilege.
If you are not the intended recipient you must not use, disseminate, distribute
or
reproduce all or any part of this e-mail or attachments. If you have received
this
e-mail in error, please notify the sender and delete all material pertaining to
this
e-mail. Any opinion or views expressed in this e-mail are those of the
individual
sender and may not represent those of The New Zealand Institute for Plant and
Food Research Limited.