![]() ![]() ![]() ![]() V = sigmaOld - bs_option_call(v, s, k, r, t, call_price1) / fprime(sigmaOld, s, k, r, t) V = sigmaOld - bs_option_call(v, s, k, r, t, call_price1)/fprime(sigmaOld, s, k, r, t)e hereįor (v, k, s, t, call_price1) in zip(sigma, K, S, Ta, call_price_list): I keep getting this error message when I running the code: RuntimeWarning: divide by zero encountered in true_divide I am trying to compute implied volatility of black scholes formula using python.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |