Function black_scholes::call_theta
source · Expand description
Returns theta of a BS call option
Examples
let stock = 5.0;
let strike = 4.5;
let rate = 0.05;
let sigma=0.3;
let maturity=1.0;
let theta = black_scholes::call_theta(
stock, strike, rate, sigma, maturity
);