Code Problem 1 in Python 2.

Problem 1

A deposit of d dollars is invested at r interest rate (compounded continuously) for t yields: y(d, r, t) = de^rt
y(1000, .02, 10) = 1221.40275816017
For this first financial problem, don’t worry about rounding, just work to get the answer. Use import math and math.exp() which is the function that raises e to its arguments. math.exp(1) produces 2.718281828459045.

Non-Required Practice: If you would like to create a nicer answer and round your answers, use the round(value, places) function. Where value is the value you wish to round and places is the number of places you wish to round to.
round(1221.40275816017, 2) = 1221.40

Code in Python 2 and add “comments” explaining what the code is doing.

Code Problem 1 in Python 2 Problem 1 A deposit of d dollars is invested at r interest rate compounded continuously for t yields yd r t dert y1000 02 10 12214027 class=

Respuesta :

I've included my code in this image. Best of luck.

Ver imagen Cytokine