Docsity

Fall 2008 ME2016D HW4: Solving Systems of Equations with Matlab and Gaussian Elimination -, Assignments of Computer Science

Toggle sidebar
bg1
ME2016D, Fall 2008, Dr. Ferri
Homework Assignment 4
Due Wednesday, September 24, 2008
Problem 1.
Given the system of equations
25.1477.0 21 =+ xx
207.12.1 21 =+ xx
(a) Use Matlab to plot the two lines and to solve graphically for x1 and x2.
(b) On the basis of the graphical solution, what do you expect regarding the condition of the
system?
(c) Solve by hand, using Gaussian-Elimination.
Problem 2.
Given the system of equations
2012 321 −=−+− xxx
10242 321 =+−− xxx
2522 321 =++ xxx
Solve by hand, using naïve Gaussian elimination. Show all steps of the computation.
Problem 3.
Use Gaussian elimination to solve the following system by hand:
24 321 −=−+ xxx
425 321 =++ xxx
66 321 =++ xxx
Employ partial pivoting (as described in Example Problem 9.9 and Figure 9.5) and check your
answers by substituting them into the original equations.
Problem 4.
The electrical circuit below can be described by the following system of equations:
pf2

Partial preview of the text

Download Fall 2008 ME2016D HW4: Solving Systems of Equations with Matlab and Gaussian Elimination - and more Assignments Computer Science in PDF only on Docsity!

ME2016D, Fall 2008, Dr. Ferri Homework Assignment 4 Due Wednesday, September 24, 2008

Problem 1. Given the system of equations

  1. 77 x 1 + x 2 = 14. 25
  2. 2 x 1 + 1. 7 x 2 = 20

(a) Use Matlab to plot the two lines and to solve graphically for x 1 and x 2.

(b) On the basis of the graphical solution, what do you expect regarding the condition of the system? (c) Solve by hand, using Gaussian-Elimination.

Problem 2. Given the system of equations

− 12 x 1 + x 2 − x 3 =− 20 − 2 x 1 − 4 x 2 + 2 x 3 = 10 x 1 + 2 x 2 + 2 x 3 = 25

Solve by hand, using naïve Gaussian elimination. Show all steps of the computation.

Problem 3. Use Gaussian elimination to solve the following system by hand:

4 x 1 + x 2 − x 3 =− 2 5 x 1 + x 2 + 2 x 3 = 4 6 x 1 + x 2 + x 3 = 6

Employ partial pivoting (as described in Example Problem 9.9 and Figure 9.5) and check your answers by substituting them into the original equations.

Problem 4. The electrical circuit below can be described by the following system of equations:

5

4

3

2

1

2 3

1 4

1 5 3

E

E

E

i

i

i

i

i

R R

R R

R R R

The physical variables are R 1 = 1 Ohm, R 2 = 2 Ohm, R 3 = 2 Ohm, R 4 = 1 Ohm, R 5 = 1 Ohm, E

= 10 volts.

(a) Use Gaussian elimination to solve for the currents i 1 through i 5. Use partial pivoting as

necessary. (b) What is the voltage drop across R 5 , if the voltage drop is equal to the resistance times the

current?

E

R 1

R 5

R 2

R 3

R 4

i 1

i

i 2

i 3

i 4

i i 5