"""Adjust a nominal return for inflation.

Exact real return is a ratio of growth factors; subtraction is only an approximation.
All inputs are synthetic teaching examples. Run: python 30_real-return.py
"""
from tv_math import *

v=(1.10/1.05)-1
assert abs(v-.047619047619)<1e-12
print(v)
