Homework 6
PS232
1. Consider the differential equation describing (for example) the height
bottom
where
, and
of water in a barrel with a hole at the
.
a. Solve the differential equation analytically, by hand, and plot the solution using Matlab for times
Problem Sheet 3 Solutions
PS232
1. The following code does a decent job of solving this problem. The equation is solved by any point on
the lines separating red from blue.
%
%
%
%
Finds the solution to the implicit equation sin(xy)-cos(x/y)=0 by plotting
Problem Sheet 4 Solutions
PS232
1. The Matlab code required to produce the plots is shown below.
% Damped Simple Harmonic Oscillator solved by Euler's Method
%
% This routine implements a numerical (Euler's Method) solution to the
% damped simple harmonic
Page 1
PS8-Problem1
For Part A of problem 1, I was to solve the duffing equation for the undamped, undriven case.
This equation results in a double-well potential, with phase-space behavior (for an initial position
resulting in a potential above the poten
Problem Sheet 12 Solutions
PS232
Show all your work and submit all plots. Also, print out, label, and submit any code.
To complete this homework, you will need to download Dr. Gretarssons matlab_tools.zip from
http:/mercury.pr.erau.edu/~greta9a1/downloads
Problem Sheet 10
PS232
Show all your work and submit all plots. Also, print out, label, and submit any code.
1. Load the data from the data file population.txt (available online) into the Matlab workspace by typing
>load(population.txt);
Make sure populat
Problem Sheet 2 solutions
PS232
1. The following script solves the problem
A = [2 1 2]; [3 2 1]; [1 1 1];
b = [1;1;1];
X=A\b
The result is
()
(
).
2. One needs to use the expansion of sine and cosine to at least 7th order, then divide the two to get the t