You are on page 1of 1

Black Scholes Valuation of a European Call Option

------------------------------------------------------------------------

initialize_parameters { S, K, T, sig, r, div }

sqrt_T = sqrt(T);
d1 = (log(S/K)+(r-div+0.5*sig^2)*T)/(sig*sqrt_T)
d2 = d1-(sig*sqrt_T);

call_value = S*exp(-div*T)*standard_normal(d1) - K*exp(-r*T)*standard_normal(d2)

------------------------------------------------------------------------

You might also like