On Sun, 7 Mar 2010 20:23:25 -0800 (PST) thedoctor81877 wrote:
> Hello. I am new to R, and am typing some homework for my undergrad Analysis
> class. I am trying to graph the following function in R: f(x) = x^2 for x
> >=0, and f(x) = 0 for x <0. How do I do this in R?
f=function(x) ifelse(x >= 0,
Hello. I am new to R, and am typing some homework for my undergrad Analysis
class. I am trying to graph the following function in R: f(x) = x^2 for x
>=0, and f(x) = 0 for x <0. How do I do this in R?
Thanks for the help.
--
View this message in context:
http://n4.nabble.com/Graphing-a-piece-wi
2 matches
Mail list logo