Answered step by step
Verified Expert Solution
Question
1 Approved Answer
we solved (analytically using Laplace transforms) the linear, second-order, forced ODE: 22+6+9()=()d2ydt2+6dydt+9y(t)=u(t) with input term ()=()u(t)=cos(t) and initial conditions (0)=1y(0)=1, ||=0=(0)=2dydt|t=0=y(0)=2. Now, write a Python
we solved (analytically using Laplace transforms) the linear, second-order, forced ODE:
22+6+9()=()d2ydt2+6dydt+9y(t)=u(t)
with input term ()=()u(t)=cos(t) and initial conditions (0)=1y(0)=1, ||=0=(0)=2dydt|t=0=y(0)=2.
Now, write a Python function which:
During Tutorial 3 last week, we solved (analytically using Laplace transforms) the linear, second-order, forced ODE: dtdt with input term u)cos) and initial conditions yco)1. y (0) 2. Now, write a Python function which: Solves and plots y(t), NOT deviation y'(t), using the concept of transfer functions (therefore you will need to analytically derive G(s) first). Plots the analytical solution of y(t) that we derived in Tutorial 3. Compares the two curves on the same plot, up to time t = 50, using similar visuals (ielegend, axis labels and titles, etc.) as the previous projects in this notebook. . During Tutorial 3 last week, we solved (analytically using Laplace transforms) the linear, second-order, forced ODE: dtdt with input term u)cos) and initial conditions yco)1. y (0) 2. Now, write a Python function which: Solves and plots y(t), NOT deviation y'(t), using the concept of transfer functions (therefore you will need to analytically derive G(s) first). Plots the analytical solution of y(t) that we derived in Tutorial 3. Compares the two curves on the same plot, up to time t = 50, using similar visuals (ielegend, axis labels and titles, etc.) as the previous projects in this notebookStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started