MECH2700 Engineering Analysis I - PowerPoint PPT Presentation

1 / 33
About This Presentation
Title:

MECH2700 Engineering Analysis I

Description:

infinity-norm: abs value of largest element. Recap: Matrix norms ... Successive over relaxation (SOR) - optimally fast convergence. ... – PowerPoint PPT presentation

Number of Views:43
Avg rating:3.0/5.0
Slides: 34
Provided by: rossm3
Category:

less

Transcript and Presenter's Notes

Title: MECH2700 Engineering Analysis I


1
MECH2700 Engineering Analysis I
  • Condition number
  • Jacobi Method

(Section 2.5 2.6 of Schilling and Harris)
2
Ax b Learning objectives
  • Know how to formulate linear system equations
    using vector and matrix notations.
  • Know how to compute and interpret the 1, 2, and
    infinity norms of matrices and vectors.
  • Know how to compute and interpret the condition
    number of a matrix.
  • Be able write computer programs that can
    iteratively solve Axb problems using
  • The Jacobi method
  • The Gauss-Seidel method
  • Know the types of problems for which these
    iterative methods are applicable and why
  • Understand the conditions under which these
    iterative methods converge and why.

Today
3
Ideas from previous lecture
  • Vector norms - measures of the size or magnitude
    of a vector
  • 1-norm sum of abs values of elements
  • 2-norm
  • infinity-norm abs value of largest element

4
Recap Matrix norms
  • Norm of a matrix represents maximum scaling
    effect of that matrix.
  • Like vectors there are various norms we can use
  • 1 norm
  • 2 norm
  • infinity norm

5
Ideas from previous lecture
1-norm
infinity-norm
6
Recap- Beam support
7
Condition number
Rather that working with absolute errors, its
preferable to work with relative errors
Condition number gives the magnification factor
for relative errors in the solution of x given
relative errors in b.
8
Example
Consider
Note scaling factor measured in the specified
norm. Here we are using the 1-norm
9
Example - beam supports
When a is small relative to l, errors scaled
significantly
a/l
10
Effects of ill-conditioning
  • A simple rule of thumb
  • For system with condition number of k, one can
    expect a loss of log10(k) decimal places in the
    accuracy of solution
  • If k 5000, log10(k) 3.6 So expect to lose
    three to four decimal places of accuracy
  • If k50,000, log10(k) 4.7 so expect to lose 4
    to 5 decimal places of accuracy

See page 68 of Schilling and Harris
11
Hilbert matrix
Hilbert matrix arises in the solution of
polynomial curve fitting
12
Hilbert matrix - a poorly conditioned matrix
  • function k hilbertcond(n)
  • for i 1n
  • H hilb(i) matlab command
  • k(i)cond(H)
  • fprintf('kH(d) f\n', i, k(i))
  • end
  • kH(1) 1.000000
  • kH(2) 19.281470
  • kH(3) 524.056778
  • kH(4) 15513.738739
  • kH(5) 476607.250243
  • kH(6) 14951058.641724
  • kH(7) 475367356.277700
  • kH(8) 15257575253.665625

k
size
13
Weighted chain
Problem determine shape of chain under gravity
14
Jacobi solution of weighted chain
Simplifying assumptions - links of unit
length - Unit tension in link - Net horizontal
forces small
15
Jacobi solution of weighted chain
Resolve vertical forces
16
Weighted chain
Consider 5 link chain
Let bj 1.0 x0x50
17
Weighted chain
Consider 5 link chain
Let bj 1.0 x0x50
18
Weighted chain
At each node
For a large number of links number of equations
is large
19
Iterative solutions of Axb
  • Weve already seem some examples of iterative
    solutions, e.g. Newtons method for root solving.
  • Iterative solutions have the characteristic that
    they converge to a solution from an initial
    guess.
  • Iterative solutions are efficient
  • Iterative solutions of Axb are virtually the
    only way of solving large problems, e.g. A of
    order 105x105.

20
Karl Jacob Jacobi (1804-1851)
Jacobi made important contributions to partial
differential equations of the first order and
applied them to the differentialequations of
dynamic systems.
21
Jacobi Algorithm - derivation
Diagonal elements
Off diagonal elements
22
Jacobi algorithm derivation
23
Jacobi algorithm derivation
Form iterative scheme
24
Jacobi algorithm
Solve
Step 5 Choose xo and iterate using scheme above
25
5 link chain
Diagonal component of A
Off diagonal
26
5 link chain
Iterative scheme.
27
Weighted chain
28
5 link chain
29
5 link chain
30
Weighted chain
Converges after about 50 iterations
31
5 link chain
32
Approximating a continuum - 50 link chain
33
Next lecture
  • Using matrix norms to determine rates of
    convergence.
  • Gauss Seidel algorthims - faster convergence
  • Successive over relaxation (SOR) - optimally fast
    convergence.
Write a Comment
User Comments (0)
About PowerShow.com