Question: Part of this question need to use Python. Please answer within 8hrs , I'll give u thumbs up 04. An RLcircuit is an electrical circuit
04. An RLcircuit is an electrical circuit consisting of a resistor and an inductor, as shown in the following figure. Close switch Voltage V - attoo 0000 Inductance Resistance R The voltage source raise the voltage V. Through the resistor, the voltage drops by IR (is the current and in the resistance). Through the inductor, the voltage drops by Lal/d (L is the inductance). So, we have the ordinary differential equation: d/() IOR+ =V dt where we emphasize that I is a function of time 1. Solve this equation of Sympy. 1. Define the symbols I, R, L, and V 2. Define the above equation 3. Solve the equation with the initial condition: (1 = 0) = 0. 4. Substitute the parameters: R = 50 (unit) L = 1 unit) and V = 5 (unit: V) into the expression of the solution. Print out the solution after substitution 6. Convert the solution It) to a python function by sympy, lambdity) 6. Plot I va I by matplotib. 7. Replace the DC voltage source by an AC voltage source such that V = 5 sin(2006) (unit: V). Solve the above differential equation for this AC source with parameters given in Question 4 (except V). Finally, plot / vs. 1 (25 marks)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
