"""Invert an interior European option price.

An out-of-bound observed premium has no admissible solution under the selected assumptions.
All inputs are synthetic teaching examples. Run: python 39_implied-volatility.py
"""
from tv_math import *

v=implied_vol(10.450583572185565,100,100,1,.05)
assert abs(v-.2)<1e-10
print(v)
