No BSD License  

Highlights from
An Introduction to Stochastic Processes

image thumbnail
e739
function e739
%
%   Example 7.3.9 - European Option
%
St=80; c=75; Tt=0.5; sigma=0.2; r=0.1;
t1=log(St/c); t2=sigma*sqrt(Tt); t3=(r+sigma^2/2)*Tt;
t4=(r-sigma^2/2)*Tt;
z1=(t1+t3)/t2; z2=(t1+t4)/t2;
d1=normcdf(z1); d2=normcdf(z2);
x=St*d1-c*exp(-r*Tt)*d2;
fprintf(' The value of the call option = %8.2f \n',x);

Contact us at files@mathworks.com