Sitemap >> California >> UCSD >> MAE 107
Course Hero has millions of student submitted documents similar to the one below including study guides, homework solutions, papers, and exam answer keys. Visit our document archives to see a sample list of documents available on Coursehero.

107 MAE Spring 2007 HW 4 Problem 1 Contents The terms can be collected to give: The terms can be collected to give: A = [0 -7 5;0 4 7;-4 3 -7] b = [50;-30;40] x = A\b AT = A' AI = inv(A) % transpose % inverse A = 0 0 -4 -7 4 3 5 7 -7 b = 50 -30 40 x = -15.1812 -7.2464 -0.1449 AT = 0 -7 5 0 4 7 -4 3 -7 AI = -0.1775 -0.1232 -0.2500 -0.1014 0.0580 0.0725 0.1014 0 0 Published with MATLAB 7.4 MAE 107 Spring 2007 HW 4 Problem 2 Contents Function to multiply two matrices Test mat_mult for matrices from Prob 8.4 Function to multiply two matrices type mat_mult.m % function to multiply two matrices function X=mat_mult(Y,Z) if nargin < 2 disp('at least 2 input arguments required'); return end [m,n]=size(Y); [n2,p]=size(Z); if n ~= n2 disp('Inner matrix dimensions must agree.'); return end for i = 1:m for j = 1:p s=0; for k=1:n s=s+Y(i,k)*Z(k,j); end X(i,j)=s; end end end Test mat_mult for matrices from Prob 8.4 A = [6 -1;12 8;-5 4] B = [4 0;0.5 2] C = [2 -2;-3 1] mat_mult(A,B) mat_mult(A,C) mat_mult(B,C) mat_mult(C,B) mat_mult(B,A) mat_mult(C,A) A = 6 12 -5 -1 8 4 B = 4.0000 0.5000 0 2.0000 C = 2 -3 -2 1 ans = 23.5000 52.0000 -18.0000 -2.0000 16.0000 8.0000 ans = 15 0 -22 -13 -16 14 ans = 8 -5 -8 1 ans = 7.0000 -11.5000 -4.0000 2.0000 Inner matrix dimensions must agree. Inner matrix dimensions must agree. Published with MATLAB 7.3 MAE 107 Spring 2007 HW 4 Problem 3 Contents Part (a) Part (b) Part (a) The determinant can be computed as follows: D = 0*det([2 -1; -2 0]) - (-3)*det([1 -1; 5 0]) + 7*det([1 2; 5 -2]) D = -69 Part (b) Cramer's rule x1 = det([2 -3 7; 3 2 -1; 2 -2 0]) / D x2 = det([0 2 7; 1 3 -1; 5 2 0]) / D x3 = det([0 -3 2; 1 2 3; 5 -2 2]) / D x1 = 0.9855 x2 = 1.4638 x3 = 0.9130 Published with MATLAB 7.3 HW 4 Problem 3 Part (c) Pivoting is necessary, switch so first and third rows 5x1 - 2x2 = 2 x1 + 2x2 + x3 = 3 -3x2 + 7x3 = 2 Multiply pivot row 1 by 1/5 and subtract the result from the second row to eliminate the a21 term. 5x1 - 2x2 = 2 2.4x2 - x3 = 2.6 -3x2 + 7x3 = 2 Pivoting is necessary so switch the second and third row, 5x1 - 2x2 = 2 -3x2 + 7x3 = 2 2.4x2 - x3 = 2.6 Multiply pivot row 2 by 2.4/(3) and subtract the result from the third row to eliminate the a32 term. 5x1 - 2x2 = 2 -3x2 + 7x3 = 2 4.6x3 = 4.2 By back substituion, x3 = and, x2 = 1.463768, x1 = 0.985507 4.2 = 0.913043 4.6 Part (d) Substituing back in original equations, we see that they are satisfied, -3(1.463768) + 7(0.913043) = 2 0.985507 + 2(1.463768) - 0.913043 = 3 5(0.985507) - 2(1.463768) = 2 1 HW 4 Problem 4 Discretization of problem Discretizing the continuous ODE using central finite difference, 0=D Collecting terms, -(D + 0.5U x)ci-1 + (2D + kx2 )ci - (D - 0.5U x)ci+1 = 0 Assuming x = 1, and substituting parameters, -2.5ci-1 + 4.2ci - 1.5ci+1 = 0 ci+1 - 2ci + ci-1 c-+1 - ci-1 -U - kci 2 x 2x Matlab output A=[4.2 -1.5 0 0 0 0 0 0 0 -2.5 4.2 -1.5 0 0 0 0 0 0 0 -2.5 4.2 -1.5 0 0 0 0 0 0 0 -2.5 4.2 -1.5 0 0 0 0 0 0 0 -2.5 4.2 -1.5 0 0 0 0 0 0 0 -2.5 4.2 -1.5 0 0 0 0 0 0 0 -2.5 4.2 -1.5 0 0 0 0 0 0 0 -2.5 4.2 -1.5 0 0 0 0 0 0 0 -2.5 4.2] b=[200 0 0 0 0 0 0 0 30]' c=A\b A = 4.2000 -2.5000 0 0 0 0 0 0 0 -1.5000 4.2000 -2.5000 0 0 0 0 0 0 0 -1.5000 4.2000 -2.5000 0 0 0 0 0 0 0 -1.5000 4.2000 -2.5000 0 0 0 0 0 0 0 -1.5000 4.2000 -2.5000 0 0 0 0 0 0 0 -1.5000 4.2000 -2.5000 0 0 0 0 0 0 0 -1.5000 4.2000 -2.5000 0 0 0 0 0 0 0 -1.5000 4.2000 -2.5000 0 0 0 0 0 0 0 -1.5000 4.2000 b = 200 1 0 0 0 0 0 0 0 30 c = 68.6755 58.9581 50.6236 43.4825 37.3783 32.1884 27.8305 24.2779 21.5940 Plotting plot(0:10, [80 c' 20]) 2 80 70 60 50 40 30 20 0 1 2 3 4 5 6 7 8 9 10 3

Find millions of documents here - Study Guides, Homework Solutions, Papers, Exam Answer Keys and more. Course Hero has millions of course related materials that will enable you to learn better, faster and get an A in all your courses.
Below is a small sample set of documents:

BoerFiveMythsMgmtAcctg1994
Path: Rhodes >> BUS >> 243 (Craig) Spring, 2008
Description: ...
Grand Inquisitor
Path: Rhodes >> RELS >> 102 (Muesse) Spring, 2008
Description: ...
Cyril, Lectures on Xn Sacraments
Path: Rhodes >> RELS >> 102 (Muesse) Spring, 2008
Description: ...
Dionysius_the_Areopagite
Path: Rhodes >> RELS >> 102 (Muesse) Spring, 2008
Description: ...
Egeria's Travel Journal
Path: Rhodes >> RELS >> 102 (Muesse) Spring, 2008
Description: ...
14.3-partial-derivatives.edit
Path: Drexel >> MATH >> 200 (Kingsberry) Spring, 2008
Description: ...
quiz 1-solutions
Path: Drexel >> CALC >> 200 (Kingsbury) Spring, 2008
Description: ...
MATH_200_spring_07_exam_1
Path: Drexel >> MATH >> 200 (Kingsberry) Spring, 2008
Description: ...
MATH_200_spring_08_exam_2_with_solutions
Path: Drexel >> MATH >> 200 (Kingsberry) Spring, 2008
Description: ...
MATH_200_spring_07_final__with_solutions
Path: Drexel >> MATH >> 200 (Kingsberry) Spring, 2008
Description: ...
15.4-parametric_surfaces_surface_area.edit
Path: Drexel >> MATH >> 200 (Kingsberry) Spring, 2008
Description: ...
14.1-level-curves-and-surfaces.edit
Path: Drexel >> MATH >> 200 (Kingsberry) Spring, 2008
Description: ...
MATH_200_spring_08_exam_1_with_solutions
Path: Drexel >> MATH >> 200 (Kingsberry) Spring, 2008
Description: ...
MATH_200_spring_07_exam_2_with_solutions
Path: Drexel >> MATH >> 200 (Kingsberry) Spring, 2008
Description: ...
PHYS-102hw3soln
Path: Drexel >> PHYS >> 102 (Tyagi) Spring, 2008
Description: ...
MATH_200_spring_08_exam_3_with_solutions
Path: Drexel >> PHYS >> 102 (Tyagi) Spring, 2008
Description: ...
Week7_2
Path: Drexel >> PHYS >> 102 (Tyagi) Spring, 2008
Description: ...
13.2-calculus-of-space-curves.edit
Path: Drexel >> MATH >> 200 (Kingsberry) Spring, 2008
Description: ...
MATH_200_spring_07_exam_3_with_solutions
Path: Drexel >> MATH >> 200 (Kingsberry) Spring, 2008
Description: ...
Week9_2
Path: Drexel >> PHYS >> 102 (Tyagi) Spring, 2008
Description: ...
PHYS_102-Spring08-Q3-Soln
Path: Drexel >> PHYS >> 102 (Tyagi) Spring, 2008
Description: ...
PHYS-102hw4soln
Path: Drexel >> PHYS >> 102 (Tyagi) Spring, 2008
Description: ...
PHYS-102hw2soln
Path: Drexel >> PHYS >> 102 (Tyagi) Spring, 2008
Description: ...
PHYS-102hw5soln
Path: Drexel >> PHYS >> 102 (Tyagi) Spring, 2008
Description: ...
15.3-double_integrals_polar
Path: Drexel >> MATH >> 200 (Kingsberry) Spring, 2008
Description: ...
Week8_1
Path: Drexel >> PHYS >> 102 (Tyagi) Spring, 2008
Description: ...
12.4-cross-products.edit
Path: Drexel >> CALC >> 200 (Kingsbury) Spring, 2008
Description: ...
Week8_2
Path: Drexel >> PHYS >> 102 (Tyagi) Spring, 2008
Description: ...
12.2-vectors-plus-dot.edit
Path: Drexel >> CALC >> 200 (Kingsbury) Spring, 2008
Description: ...
12.3-more-dots.edit
Path: Drexel >> CALC >> 200 (Kingsbury) Spring, 2008
Description: ...
15.5-Triple_Integrals.edit
Path: Drexel >> MATH >> 200 (Kingsberry) Spring, 2008
Description: ...
12.1-rectangular-coordinates.edit
Path: Drexel >> CALC >> 200 (Kingsbury) Spring, 2008
Description: ...
PHYS-102hw1soln
Path: Drexel >> PHYS >> 102 (Tyagi) Spring, 2008
Description: ...
PHYS102_Quiz2_Soln
Path: Drexel >> PHYS >> 102 (Tyagi) Spring, 2008
Description: ...
15.2-double_integrals_nonrectangular.edit
Path: Drexel >> MATH >> 200 (Kingsberry) Spring, 2008
Description: ...
Quiz1 Soln
Path: Drexel >> PHYS >> 102 (Tyagi) Spring, 2008
Description: ...
13.1-Vector-Valued Functions.edit
Path: Drexel >> CALC >> 200 (Kingsbury) Spring, 2008
Description: ...
12.7-quadric-surfaces.edit
Path: Drexel >> CALC >> 200 (Kingsbury) Spring, 2008
Description: ...
12.5-lines.edit
Path: Drexel >> CALC >> 200 (Kingsbury) Spring, 2008
Description: ...
12.6-planes.edit
Path: Drexel >> CALC >> 200 (Kingsbury) Spring, 2008
Description: ...
hw12.7
Path: Drexel >> MATH >> 200 (Jason) Spring, 2008
Description: ...
hw14.4
Path: Drexel >> MATH >> 200 (Jason) Spring, 2008
Description: ...
hw14.5
Path: Drexel >> MATH >> 200 (Jason) Spring, 2008
Description: ...
hw14.6
Path: Drexel >> MATH >> 200 (Jason) Spring, 2008
Description: ...
hw14.7
Path: Drexel >> MATH >> 200 (Jason) Spring, 2008
Description: ...
hw14.8
Path: Drexel >> MATH >> 200 (Jason) Spring, 2008
Description: ...
hw15.1
Path: Drexel >> MATH >> 200 (Jason) Spring, 2008
Description: ...
hw15.2
Path: Drexel >> MATH >> 200 (Jason) Spring, 2008
Description: ...
hw15.3
Path: Drexel >> MATH >> 200 (Jason) Spring, 2008
Description: ...
hw15.4
Path: Drexel >> MATH >> 200 (Jason) Spring, 2008
Description: ...
hw15.5
Path: Drexel >> MATH >> 200 (Jason) Spring, 2008
Description: ...
hw12.8
Path: Drexel >> MATH >> 200 (Jason) Spring, 2008
Description: ...
hw13.1
Path: Drexel >> MATH >> 200 (Jason) Spring, 2008
Description: ...
hw13.2
Path: Drexel >> MATH >> 200 (Jason) Spring, 2008
Description: ...
hw14.1
Path: Drexel >> MATH >> 200 (Jason) Spring, 2008
Description: ...
hw14.3
Path: Drexel >> MATH >> 200 (Jason) Spring, 2008
Description: ...
hw12.1
Path: Drexel >> MATH >> 200 (Jason) Spring, 2008
Description: ...
hw12.2
Path: Drexel >> MATH >> 200 (Jason) Spring, 2008
Description: ...
hw12.3
Path: Drexel >> MATH >> 200 (Jason) Spring, 2008
Description: ...
hw12.4
Path: Drexel >> MATH >> 200 (Jason) Spring, 2008
Description: ...
hw12.5
Path: Drexel >> MATH >> 200 (Jason) Spring, 2008
Description: ...
hw12.6
Path: Drexel >> MATH >> 200 (Jason) Spring, 2008
Description: ...
Week7_1
Path: Drexel >> PHYS >> 102 (Tyagi) Spring, 2008
Description: ...
Week5_2
Path: Drexel >> PHYS >> 102 (Tyagi) Spring, 2008
Description: ...
Week6_1
Path: Drexel >> PHYS >> 102 (Tyagi) Spring, 2008
Description: ...
Week6_2
Path: Drexel >> PHYS >> 102 (Tyagi) Spring, 2008
Description: ...
Week3_2
Path: Drexel >> PHYS >> 102 (Tyagi) Spring, 2008
Description: ...
Week4_1
Path: Drexel >> PHYS >> 102 (Tyagi) Spring, 2008
Description: ...
Week5_1
Path: Drexel >> PHYS >> 102 (Tyagi) Spring, 2008
Description: ...
Week3_1
Path: Drexel >> PHYS >> 102 (Tyagi) Spring, 2008
Description: ...
Searches that led to this document: mae 107 ucsd, mae 107, ucsd mae 5, ucsd mae 107, mae 107 spring 09, mae ucsd 107, "MAE 107"

Course Hero - We put you ahead of the curve!

You have requested the below document.

Sign up to get this Document!

Title: hw4_solutions
Type: Notes
School: UCSD
Course: MAE 107
Term: Spring 2008
Professor: ROTTMAN
Sign-up to see this document.

Get Started With Course Hero Today!

Get study guides, join study groups, and more!
Sign up in seconds with your Facebook account!
Course Hero is a Facebook Application Partner.
Click below to sign-up for FREE.
 
What People Are Saying About Course Hero

“I was going to fail my Evidence exam, but then I found a great outline on Course Hero!”
- Kim Cowan, Cornell University



“I worked for tens of hours on my chemistry lab reports this semester, and now I can publish my hard work to thousands of people who care to read about what I found.”
- David Grauer, Princeton University



“Course Hero allows for students to learn and collaborate together online, outside of the classroom.” 
- Yosana Tewolde, USD



“Many times, students learn best from other students, their peers, rather than from a teacher.  Course Hero provides such a forum for students to teach students.”
- Somerset Perry, Georgetown University



“I’ve found lecture notes that are better than mine and I’ve found lecture notes for classes that I missed.”
- Megan Keely, Cornell University



“Anytime you can aggregate and organize information in a useful manner, you have created value.  Course Hero creates value by collecting and organizing educational course materials.”
- Brianna Schwanke, Stanford University



“It’s great to see how different people learn, digest and present knowledge.  Course Hero is great in this way because many students and teachers showcase their own perspectives on the same subject.  And their different perspectives may each be more useful to different people.”
- Alex Gitlin, Harvard University



“Course Hero gives me a good taste of which courses I want to take, because I can look at the materials being used in each course.  I can get an idea how the teacher teaches, what the students are producing and the likely difficulty of the course.  And of course, I can get an idea of whether I’ll like the course or not.”
- Jason Davis, Cornell University



“Course Hero is a great new research tool for college students.  Students can find lots of pertinent information to their studies that they previously could not find or have access to.  It’s for sure an educational innovation and potentially an educational revolution.”
- Andy Suiter, UCLA and UC Davis



“Even though I’m an economics major, I can learn about other majors that I’m interested in like engineering, business and hotel administration.” 
- Abram Balloga, Cornell University



“As a freshman, Course Hero will help me to decide what I am actually interested in studying in college.”
- Caity Feindt, Ithaca College



“I have found PowerPoint slides for class lectures on corporate finance created by both teachers and students from multiple schools, which has really helped me learn more about the subject.”
- John Stacey III, UCSB



“I study less and learn more with Course Hero.”
- John Sweazey, CU-Boulder



 

Explore the benefits of joining Course Hero's social learning network.

Get millions of study materials now!

Need lecture notes for a missed class or want insightful explanation of the theories and concepts you learn in class? Look no further, Course Hero’s Study Materials empowers you to find a broad and deep set of materials that can help you right now!

Click below to sign-up for FREE.
 

Get over 200,000 textbook solutions now!

Having difficulty with your homework and need the solution so that you can accelerate your learning? Don’t be frustrated. Course Hero’s Textbook Solutions gives you solutions submitted by fellow students.

Click below to sign-up for FREE.
 

Meet over 300,000 students and your fellow classmates now!

Want to meet your current classmates or those that took the class last year? Don’t worry or have anxiety. Course Hero’s Study Groups gives you the seamless opportunity to develop both anonymous or direct relationships with those classmates whom you want to meet and get help from right now!

Click below to sign-up for FREE.
 
Below please find a part of the unformatted version of the requested document. Click Here to view a sample formatted document.
Click below to sign-up for FREE.
 
Feedback
X
Send Feedback