I want to calculate IV for american options with dividends. So far I have found algorithms to calculate the option price given a volatility.
Please can you point me to paper or implementation (R, python or any other language) of an algorithm that can calculate the IV given option prices, risk free rate, dividends, etc.