R/vffgm.R

Defines functions vffgm

Documented in vffgm

#' @export vffgm
#'
vffgm <- function(C, u, tht){
	a = -(1 - u)*tht
	b = 1 + (1 - u)*tht
	c = -C/u
	r = ((-b + sqrt(b*b - 4*a*c))/(2*a))
	return(ifelse(r > 1, NaN, ifelse(r < 0, NaN, r)))
}

Try the vfcp package in your browser

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

vfcp documentation built on May 2, 2019, 2:52 p.m.