Build me a function using python
Budget: $10 – $30 USD
Write a MATLAB program that calculates the worth in dollars of a principal investment that is compounded continuously for some fixed time at some fixed interest rate. Do this by writing a function that takes the principal, the rate, and the time as inputs, and then returns the worth. In your main program, call the function with 10000 dollars invested for 20 years at a 5% interest rate. Have your main program print the result. You may need to look up the formula for compound interest. The exp function in MATLAB is the exponential.
Related categories:
Python
Matlab and Mathematica
Software Architecture
Machine Learning (ML)
Mathematics