Docsity

Final Exam for CMSC/MAPL 460 with Dr. Wolfe (December 1997) - Prof. Peter Wolfe, Exams of Mathematics

Toggle sidebar
bg1
CMSC/MAPL
460
Dr.
Wolfe
FINAL
EXAM
December
20,
1997
1.
(30
points)
(a)
For
two-digit
(base
10)
arithmetic
with
rounding,
what
is
the
machine
epsilon
?
Consider
the
system
(b)
Solve
the
system
(1)
using two-digit
arithmetic
and
Gaussian
elimination
with
partial
pivoting.
(Do
not
scale
the
equations.)
(c)
Solve
the
system.
(1)
using
exact
arithmetic.
If
you
are
careful
you
should
see
a
considerable
difference
betwen
the
solutions
found
in
(b)
and
(c).
(d)
For
the
solution
found
in (b)
compute
the
residual
(using
exact
arithmetic).
(e)
Compute
the
condition
number
of
the
coefficient
matrix
in
(1)
in
the
infinity
norm.
(f)
What
lessons
can
be
drawn
from
the
above
computations
?
2.
(15
points)
(a)
Find
pi(x},
the
quadratic
polynomial
interpolating
f(x)
=
e
x
at
x
=
0,
x
=
.5
and
x
=
1.
Use
five
digit
arithmetic
so
that
e~
5
=
1.6487,
e
=
2.7183.
Write
it
in
any
form
you like
but
see
(b)
below.
(b)
Compute
J
0
P2(x]
dx
and
compare
it
with
J
Q
f(x)
dx.
(c)
The
computation
in
part
(b)
corresponds
to
whett
standard
method
for
approxi-
mating
J
0
f(x)
dxl
3.
(10
points)
Suppose
/
is
a
smooth
function
such
that
i
f(x)
dx
=
5.
o
Suppose
the
result
of
applying
the
trapezoid
rule
with
20
panels
is
4.84.
Assuming
roundoff
error
is
not
a,
factor,
approximately what
result
would
you
expect
if
you
were
to
apply
the
trapezoid
rule
with
40
panels
?
4.
(15
points)
The
equation
3
In
x
=
x
has
two
real
solutions,
one
near
x
=
2,
the
other
near
x
=
4.5.
(a)
Rewrite
the
equation
in
the
form
x
=
g(x)
so
that
the
fixed
point
iterations
will
converge
to
the
root near x
=
2.
Find
this
root.
(b)
Rewrite
the
equation
in
the
form
x
=
g(x)
so
that
the
fixed
point
iterations
will
converge
to
the
root near x
=
4.5.
Find
this
root.
Note:
You
may
use
an
iteration
based
on
Newton's
method
to
find
one
but
not
both
of
these
roots.
pf2

Partial preview of the text

Download Final Exam for CMSC/MAPL 460 with Dr. Wolfe (December 1997) - Prof. Peter Wolfe and more Exams Mathematics in PDF only on Docsity!

CMSC/MAPL 460 Dr. Wolfe FINAL EXAM December 20, 1997

  1. (30 points) (a) For two-digit (base 10) arithmetic with rounding, what is the machine epsilon? Consider the system

(b) Solve the system (1) using two-digit arithmetic and Gaussian elimination with partial pivoting. (Do not scale the equations.) (c) Solve the system. (1) using exact arithmetic. If you are careful you should see a considerable difference betwen the solutions found in (b) and (c). (d) For the solution found in (b) compute the residual (using exact arithmetic). (e) Compute the condition number of the coefficient matrix in (1) in the infinity norm. (f) What lessons can be drawn from the above computations?

  1. (15 points) (a) Find pi(x}, the quadratic polynomial interpolating f(x) = ex at x = 0, x =. and x = 1. Use five digit arithmetic so that e~5 = 1.6487, e = 2.7183. Write it in any form you like but see (b) below. (b) Compute J0 P2(x] dx and compare it with JQ f(x) dx. (c) The computation in part (b) corresponds to whett standard method for approxi- mating J0 f(x) dxl
  2. (10 points) Suppose / is a smooth function such that

i f(x) dx = 5. o

Suppose the result of applying the trapezoid rule with 20 panels is 4.84. Assuming roundoff error is not a, factor, approximately what result would you expect if you were to apply the trapezoid rule with 40 panels?

  1. (15 points) The equation 3 In x = x has two real solutions, one near x = 2, the other near x = 4.5. (a) Rewrite the equation in the form x = g(x) so that the fixed point iterations will converge to the root near x = 2. Find this root. (b) Rewrite the equation in the form x = g(x) so that the fixed point iterations will converge to the root near x = 4.5. Find this root. Note: You may use an iteration based on Newton's method to find one but not both of these roots.
  1. (15 points) We wish to solve the system

x2 y + y2 - x = 2, 3z + y -a:2 y2 = 2

by Newton's method. If (cco,yo) = (1, 1) what is (zi,yi)? Do you think (x,yi) is closer to a root than (xo,yo)?

  1. (15 points) (a) Transform the second order system of differential equations

d2 u dv —^ + 3 -2u = sin x ax 1 ax d2 v du

nil nl) «(0) = 1, ^(0) = 2, w(0)=3, ^(0) = 1

into a first order system. (b) Compute an approximation to the solution of (2) at x = 0.1 using Euler's method with h = .1.