Docsity

Assignment 4 Problems - Advanced Topics in Numerical Methods | CMSC 878, Assignments of Computer Science

Toggle sidebar
bg1
CMSC878R/AMSC698R Assignment 4
In preparation for starting the FMM, we will consider the problem of translating series, and evaluating
the error bounds of this translation. In addition, please read the handout given in class.
1 Problem (Homework 4)
Evaluate accuracy of the p-truncated S|R-reexpansion of function with translation vector t(in 1-D case this
is a scalar)
Φ(y, xi)= 1
y−xi
,
where xiis an arbitrary point, xi∈£−1
2l, 1
2l¤,y∈£3
2l, 5
2l¤,t=2l.
Homework 4
1. Using examples of Lectures #5 and 8, provide a formula for S-expansion of Φ(y,xi)near x∗=0,
that can be used for approximation of this function for |y|>3
2l. Find theoretically dependence of
the maximum absolute error ²on truncation number pand the length of the interval l. Compare your
theoretical dependence with some computations (e.g. you can take xi=1
2l;y=3
2l, and vary pand l)
and provide a graph of comparisons.
2. Implement a routine that provides p-truncated S|R-translation matrix that converts a pvector of S-
expansion coefficients to a pvector of R-expansion coefficients, as was discussed in class in lecture 8.
This will eventually be used to develop a future FMM program). As input your routine should take
a vector of S-expansion coefficients of length pand translation vector t(in 1-D tis a scalar) and as
output it should provide a vector of R-expansion coefficients of length p.
3. Test your program using as input coefficients of the p-truncated S-expansion of Φ(y, xi)and vector
t=2l. Using the the output vector of R-expansion coefficients and the R-basis functions centered at
x∗=2l, obtain the approximate value of Φ(y,xi)for y∈£3
2l, 5
2l¤.Compare this result with the exact
(straightforward) computation of Φ(y, xi).
4. Obtain theoretical error bounds for p-truncated S|R-translations. Compare the results of your numer-
ical experiments at various pand lwith this bound, and plot. Make some conclusions.
Hints (Homework 4)
1. Use the property of geometric progression for error evaluation
1
1−α=1−αp+αp
1−α=1−αp
1−α+αp
1−α=1+α+... +αp−1+αp
1−α,(α6=1).(1)
(if you wish, you can also use the technique taught previously — Taylor series and evaluation of the
residual term).
2. Use Matlab.
3. In 4 above, note that the norm of the exact translation operator for bounded functions does not exceed
1. You may use this fact and the Theorem proved in class in lecture #7 to evaluate the error bounds
of the p-truncated translation operator. On the other hand you have the freedom to evaluate these
bounds in a way you devise (any method is OK).
c
°N. A. Gumerov & R. Duraiswami, 2002. All rights reserved. Please do not redistribute outside of the
course ...
1

Partial preview of the text

Download Assignment 4 Problems - Advanced Topics in Numerical Methods | CMSC 878 and more Assignments Computer Science in PDF only on Docsity!

CMSC878R/AMSC698R Assignment 4

In preparation for starting the FMM, we will consider the problem of translating series, and evaluating the error bounds of this translation. In addition, please read the handout given in class.

1 Problem (Homework 4)

Evaluate accuracy of the p-truncated S|R-reexpansion of function with translation vector t (in 1-D case this is a scalar)

Φ(y, xi) =

y − xi

where xi is an arbitrary point, xi ∈

− 12 l, 12 l

, y ∈

2 l,^

5 2 l

, t = 2l. Homework 4

  1. Using examples of Lectures #5 and 8, provide a formula for S-expansion of Φ(y, xi) near x∗ = 0, that can be used for approximation of this function for |y| > 32 l. Find theoretically dependence of the maximum absolute error ² on truncation number p and the length of the interval l. Compare your theoretical dependence with some computations (e.g. you can take xi = 12 l; y = 32 l, and vary p and l) and provide a graph of comparisons.
  2. Implement a routine that provides p-truncated S|R-translation matrix that converts a pvector of S- expansion coefficients to a p vector of R-expansion coefficients, as was discussed in class in lecture 8. This will eventually be used to develop a future FMM program). As input your routine should take a vector of S-expansion coefficients of length p and translation vector t (in 1-D t is a scalar) and as output it should provide a vector of R-expansion coefficients of length p.
  3. Test your program using as input coefficients of the p-truncated S-expansion of Φ(y, xi) and vector t = 2l. Using the the output vector of R-expansion coefficients and the R-basis functions centered at x∗ = 2l, obtain the approximate value of Φ(y, xi) for y ∈

2 l,^

5 2 l

. Compare this result with the exact (straightforward) computation of Φ(y, xi).

  1. Obtain theoretical error bounds for p-truncated S|R-translations. Compare the results of your numer- ical experiments at various p and l with this bound, and plot. Make some conclusions.

Hints (Homework 4)

  1. Use the property of geometric progression for error evaluation

1 1 − α

1 − αp^ + αp 1 − α

1 − αp 1 − α

αp 1 − α

= 1 + α + ... + αp−^1 + αp 1 − α

, (α 6 = 1 ). (1)

(if you wish, you can also use the technique taught previously — Taylor series and evaluation of the residual term).

  1. Use Matlab.
  2. In 4 above, note that the norm of the exact translation operator for bounded functions does not exceed
    1. You may use this fact and the Theorem proved in class in lecture #7 to evaluate the error bounds of the p-truncated translation operator. On the other hand you have the freedom to evaluate these bounds in a way you devise (any method is OK).

°cN. A. Gumerov & R. Duraiswami, 2002. All rights reserved. Please do not redistribute outside of the course ...