WIDENER UNIVERSITY
School of Engineering
Department of Mechanical Engineering
ME 354 Computations in Mechanical Engineering
Summer 2010
Instructor:
Tulong Zhu
Office:
Kirkbride 169B
Telephone: (610) 499-4061
Fax:
(610) 499-4069
Email:
[email protected]
% Dr. Malloy
% m file to plot y=sinx+3x^2
clear all
x=-5:.1:5;
y=sin(x)+3*x.^2;
for k=1:max(size(x)
yy(k)=sin(x(k)+3*x(k)^2;
end
plot(x,y,x,yy,'*')
title('y=sin(x)+3x^2')
xlabel('x')
ylabel('y')
text(0,70,'Malloy')
% Main file that calls function file
% Solving O.D.E. for spring-mass-system
clc
clear all
close all
initcond=[0;3];
[t,x]=ode45('midtermex',[0 10],initcond);
position=x(:,2);
velocity=x(:,1);
plot(t,position)
xlabel('Time (seconds)')
ylabel('Position (un
ME 354: Computations in Mechanical Engineering
Spring 2009
Homework #4
DUE: Wednesday 6/24/2009, by 5:00 PM
1. The figure below shows a uniform beam subject to a linearly increasing distributed
load. The equation for the deflection of the beam, y(x), is g
ME 354: Computations in Mechanical Engineering
Summer 2009
Homework #5
DUE: Friday 7/10/2009, by 5:00 PM
1.
2.
Problem 9.5 from textbook (use Matlab, Excel, etc. for graphical solution; the
Gauss elimination portion should be done by hand).
Problem 9.8 fr
ME 354: Computations in Mechanical Engineering
Summer 2009
Homework #6
DUE: Tuesday 7/21/2009, by 5:00 PM
1. Problem 21.4 from textbook
2. Problem 22.14 from textbook
3. Problem 24.41 from textbook.
4. Problem 24.54 from textbook.
ME 354: Computations in Mechanical Engineering
Spring 2009
Homework #4
DUE: Wednesday 6/24/2009, by 5:00 PM
1.
The figure below shows a uniform beam subject to a linearly increasing
distributed load. The equation for the deflection of the beam, y(x), is g
ME 354: Computations in Mechanical Engineering
Summer 2009
Homework #6
DUE: Tuesday 7/21/2009, by 5:00 PM
1.
Problem 21.4 from textbook
2.
Problem 22.14 from textbook
3.
Problem 24.41 from textbook.
4.
Problem 24.54 from textbook.
ME 354: Computations in Mechanical Engineering
Spring 2009
Homework #5
DUE: Friday 7/10/2009, by 5:00 PM
1. Problem 9.5 from textbook (use Matlab, Excel, etc. for graphical solution; the
Gauss elimination portion should be done by hand).
2. Problem 9.8 fr
ME 354: Computations in Mechanical Engineering
Summer 2009
Homework Set #2
DUE: Tuesday 6/9/2009 (by 5:00 PM)
1. The cosine function can be calculated by the following infinite series:
x 2i
cos x ( 1)
(2i )!
i =0
N
i
Write a script to compute the series s
ME 354: Computations in Mechanical Engineering
Summer 2009
Homework #3
DUE: Tuesday 6/16/2009 by 5:00 PM
1.
The following data is provided for the velocity of an object as a function of time.
Compute the maximum acceleration of the object. (You may exclud
1. Assume that velocity data as a function of time are given by the following table:
Time (s)
Velocity (m)
1
5
2
6
3.25
5.5
4.5
7
6
8.5
7
8
8
6
It is desired to estimate the distance traveled by integrating the following
function:
tf
x = x 0 + v( t ) dt
t
Name: _
ME 354 Final Exam
Summer 2009
Prof. Nicosia
Instructions:
1. There are 8 problems on this exam. Please make sure that you have all problems
before starting.
2. Please write your name on the top of each page now.
3. If you use extra paper, write th
ME 354: Computations in Mechanical Engineering
Summer 2009
Homework Set #2
DUE: Tuesday 6/9/2009 (by 5:00 PM)
1.
The cosine function can be calculated by the following infinite series:
x 2i
cos x ( 1)
( 2i )!
i =0
N
i
Write a script to compute the series
ME 354: Computations in Mechanical Engineering
Summer 2009
Homework Set #1
DUE: Monday 6/1/2009 (by 5:00 P.M.)
Instructions:
(1) Submit your assignment using the Assignments Tab of Campus Cruiser
(2) Submit a single MS Word document with:
a. short stateme
ME 354: Computations in Mechanical Engineering
Summer 2009
Homework Set #1
DUE: Monday 6/1/2009 (by 5:00 P.M.)
Instructions:
(1) Submit your assignment using the Assignments Tab of Campus Cruiser
(2) Submit a single MS Word document with:
a. short stateme
Name: _
ME 354 Final Exam
Instructions:
1. There are 5 problems on this exam. Please make sure that you have all problems
before starting.
2. Please show all work.
3. All problems are not weighted equally. Please use your time wisely.
Name: _
1.
Please co
ME 354 Exam II
Summer 2009
Prof. Nicosia
Instructions:
1. There are 6 problems on this exam. Please make sure that you have all problems
before starting.
2. Please write your name on the top of each page now.
3. If you use extra paper, write the problem n
Name: _
ME 354 Final Exam
Instructions:
1. There are 5 problems on this exam. Please make sure that you have all problems
before starting.
2. Please show all work.
3. All problems are not weighted equally. Please use your time wisely.
Name: _
1.
Please co
ME 354 Exam II
Summer 2009
Prof. Nicosia
Instructions:
1. There are 6 problems on this exam. Please make sure that you have all problems
before starting.
2. Please write your name on the top of each page now.
3. If you use extra paper, write the problem n
Matrices Agenda
Properties of Matrices
Matrix Operations
Determinants
Inverses
Solving Systems of Equations
Matrices
Matrix A with m rows and n columns (m x n)
a11
a
A = 21
am1
a12
a22
am 2
a1n
a2 n
amn
Matrix B with n rows and p columns (n x p)
Quiz Systems of Equations and Matrices 9/23/02
Find the currents in amps by solving the system of
equations developed using Kirchoffs Voltage Law
(by hand and using Matlab)
3I1 + 6 I 3 = 12 [volts]
4 I1 8 I 2 + 2 I 3 = 0 [volts]
2 I1 + 2 I 3 = 12 [volts]