Next: , Previous: , Up: Octave Functions and Scripts   [Contents][Index]


5.99 swaption_black76

Function File: [SwaptionB76Value] = swaption_black76 (PayerReceiverFlag, F, X, T, r, sigma, m, tau)

Compute the price of european interest rate swaptions according to Black76 pricing functions.

C = (F*N( d1) - X*N( d2))*exp(-rT) * multiplicator(m,tau)
P = (X*N(-d2) - F*N(-d1))*exp(-rT) * multiplicator(m,tau)
d1 = (log(S/X) + (r + 0.5*sigma^2)*T)/(sigma*sqrt(T))
d2 = d1 - sigma*sqrt(T)

Variables:

See also: swaption_bachelier.