ProjectMOSAIC / mosaicCalc

Calculus in R
12 stars 4 forks source link

Symbolic derivatives #14

Open dtkaplan opened 2 years ago

dtkaplan commented 2 years ago

Still needs work for when default values are given for arguments, like this:

> norm <- makeFun(pnorm(x, mean=m, sd=s) ~ x, s=2, m=0)
> norm
function (x, s = 2, m = 0) 
pnorm(x, mean = m, sd = s)
> D(norm(x) ~ x)
function (x, type = O) 
dnorm(x, 0, type)

Why is there a type=O?