r - Generating values of x,y for equally spaced x in an interval -
i new working in r , generate values of x,y plot lowess smoothing. generate equally spaced x values in interval given function.
for example, generate values function:
f(x) = 5x^3 - 2x^2 -2x +1
in interval of [-5,5].
(p.s. background in biology don't understand technical things like!)
you mean this
f1 <- function(x) (5*x)^3 - (2*x)^2 - 2*x + 1 seqx <- seq(-5,5, = 0.1) plot(seqx, f1(seqx), pch = 20)
Comments
Post a Comment