Homework 5 is to solve three ordinary differential equations. For each equation, solve it for the range 0-7, with 700 data points. Use the python function odeint! (For reference, see verysimpleODE.py and some of the other examples.)
You will turn in a single python file called hw5.py which solves the three problems. For each problem graph the requested items. Note that y’ is the first derivative of y with respect to t. Likewise, y” is the second derivative of y with respect to t. Note that np.cos() and np.sin() are computing values in radians.
Problem 1: yβ = cos2(t); initial value: y(0)=1. Plot y vs t.
Problem 2: yβ = 2y + 2e3t; initial value y(0) = 5. Plot y vs t.
Problem 3: yβ = -2y + 2y’; initial values y(0) = 1, yβ(0) = 1. Plot y vs t and yβ vs t on the same plot.
[SOLVED] EEE591 - Homework 5
39.99 $
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
Securely Powered by:
- hw5-wrwnj1.zip





