Discount factors under a variable annual interest scenario
vt_var.RdComputes the sequence of discount factors $$v_1,\; v_2,\; \dots,\; v_n$$ where $$v_t = \prod_{k=1}^{t}(1+i_k)^{-1}.$$
Examples
vt_var(c(0.06, 0.07, 0.08))
#> [1] 0.9433962 0.8816787 0.8163692