powered by
Calculate higher order derivatives for use in exact moment calculations.
DD(expr, name, order)
An R expression of the function to be differentiated.
A qoted string containing the name of the variable with respect to which the derivative is calculated.
The order of the derivative saught.
An R expression of the calculated derivative.
# NOT RUN { DD(expression(exp(m*t+(1/2)*(s^2)*(t^2))), "t", 1) ## m DD(expression(exp(m*t+(1/2)*(s^2)*(t^2))), "t", 2) ## m^2+s^2 # }
Run the code above in your browser using DataLab