News for hackers. Stuff that matters.
Re:R for Excel Users by ryanmonroe on Thursday February 16, 2017 @04:26PM (#13663708)
>Here's one: plot 360 degrees of a sine wave, and it's first and second derivatives. Then explain an Excel user how that works.

Seems pretty straightforward to me

    x  <- seq(from = 0, to = 2*pi, by = .05)
    y  <- sin(x)
    y2 <- cos(x)
    y3 <- -sin(x)

    plot(x, y, type = 'l')
    lines(x, y2, col = 'red')
    lines(x, y3, col = 'blue')
Re:R for Excel Users by roel_v on Friday February 17, 2017 @05:02AM (#13667175)
Sure, I didn't think about my example well enough - what I meant was a generic way of taking a derivative, from series of data to a function that returns a y value for a given x value. E.g. plot derivatives of a normal distribution curve.