r - Calculate derivative and use the result as a function -


i need calculate derivative, f = x^2. using code

d(expression(x^2), 'x') 

how use output of d(x^2) = 2x function take values?

k<-deriv(~ x^2, "x") x <- -1:10 eval(k) 

Comments

Popular posts from this blog

iphone - Three second countdown in cocos2d -

hyperlink - how to do url routing in php -

c - Avoiding Extra Malloc in Linked List (node->next = NULL) -