R/deriv_gh.R

Defines functions deriv_gh

deriv_gh <-
function(z,g,h) {
  if(g==0) exp(h*z^2*0.5)*(1+h*z^2)
  else exp(h*z^2*0.5)*(exp(g*z)+h*z*(exp(g*z)-1)/g)
}

Try the OpVaR package in your browser

Any scripts or data that you put into this service are public.

OpVaR documentation built on Sept. 8, 2021, 5:07 p.m.