Problem bank
Problem 267 of 333HardCodingP267
An implied volatility solver that cannot fail
You have
bs_call(S, K, T, r, sig), which returns the Black-Scholes call price and vega. Plain Newton from works for at-the-money options but fails for , , , and a quoted price of .Explain why it fails, then write
implied_vol(price, S, K, T, r)that returns the implied volatility whenever one exists. Which inputs should it reject?See the hint and solution with a free account
Every problem on Quant Engine is free, with a hint and a full worked solution. Making an account takes 30 seconds and no card. Then you can see them and track what you have solved.