[SOLVED] EEE591 - Homework 5

39.99 $

Category: Tags: , , , , , , , , ,
Click Category Button to View Your Next Assignment | Homework

You will receive the following solution file(s) instantly after successful payment:

zip file icon hw5-wrwnj1.zip (70.6 KB)
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
πŸ”’ Securely Powered by:
Secure Checkout
5/5 - (2 votes)

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.

  • hw5-wrwnj1.zip