DD: Calculate derivatives.

Description Usage Arguments Value Examples

Description

Calculate higher order derivatives for use in exact moment calculations.

Usage

1
DD(expr, name, order)

Arguments

expr

An R expression of the function to be differentiated.

name

A qoted string containing the name of the variable with respect to which the derivative is calculated.

order

The order of the derivative saught.

Value

An R expression of the calculated derivative.

Examples

1
2
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

mtloots/alR documentation built on May 23, 2019, 8:18 a.m.