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

c++ - CryptStringToBinary API behavior -

java.util.scanner - How to read and add only numbers to array from a text file -

iphone - Three second countdown in cocos2d -