2. To simulate the behavior of this circuits, you'll need to numerically integrate the differential equations that describe the rate-of-change of the voltage. The simplest approach to implement is Euler's method. To solve the differential equation:
use the iterative procedure
where delta_t is the integration step size and y is the quantity that is being integrated.
Using the Euler integration technique, simulate the response of the circuit in (1) to a step change in applied current . Use the following parameters in you simulations:
R = {2, 5, 10, 20, 50} (i.e. simulate responses for 5 different values of R)
C = 1, V0 = 0, delta_t = 1
Turn in a listing of your code and a plot of the voltage as a function of time for 0 < t <= 100
for the 5 values of R given above. Your plot should look similar to the following figure.