Nothing
compute.implied.volatility <-
function(r, te, s0, k, y, call.price, lower, upper)
{
n = length(k)
sigma = numeric(n)
for (i in 1:n)
{
f = function(x)
{
d1 = (log(s0/k[i]) + (r - y + (x^2)/2) * te) / (x * sqrt(te))
d2 = d1 - x * sqrt(te)
out = s0 * exp(-y*te) * pnorm(d1) - k[i] * exp(-r*te) * pnorm(d2) - call.price[i]
out
}
sigma[i] = uniroot(f, lower = lower, upper = upper, maxiter = 5000)$root
}
sigma
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.