Using SymPy to calculate Future Value and Present Value

Pankaj Kumar
Python in Plain English
3 min readOct 1, 2022

--

Photo by Kenny Eliason on Unsplash

We use the following famous formula to calculate the future value of amounts that compound annually.

mathematically it is easy to calculate this using normal python functions. We are going to use the SymPy package to evaluate it as an expression. In the following example, we will calculate the compound interest of principal amount 100 after 3 years, compounded yearly…

--

--

MS Data Science SMU TX. Pursuing MSc Financial Engg. At WQU.Interest in Algos, Discovering Trends fm data. Methodical, conven/non-conven. Investigation of data.