Compute a matrix vector multiplication

Assignment Help Engineering Mathematics
Reference no: EM131299227

Math Programming Exercise Assignment

 Use the finite difference method to approximate the solution of the Poisson problem:

-?u := -∂xxu - ∂yyu = f, in ? = (0, 1) × (0, 1),

  u = 0 ,  on ∂?,

where f is a given function. Specifically, solve the approximation problem

1612_Figure.png

where n ≥ 2 is an integer, h := 1/n, fi,j := f (ih, jh), and wi,j ≈ u(ih, jh). The object wi,j is a called a grid function. It is a discrete approximation of the continuous variable u. This approximation problem can be written as a linear system Aw = f, where A is an (n - 1)2 × (n - 1)2 matrix.

Write a code in Matlab to solve the approximation problem Aw = f using five different iterative schemes: (a) Jacobi, (b) Gauss-Seidel, (c) relaxation, (d) Steepest Descent, (e) Conjugate Gradient, and, finally, (f) preconditioned Steepest Descent using the incomplete Choleski factorization of A.

You should not explicitly form the stiffness matrix A. Instead, if you need to compute a matrix vector multiplication Ax, where x is an arbitrary vector, you should instead use the stencil form as above. In other words, translate x into a grid function with zero boundary values.

The methods above are iterative. They only stop iterating when you supply a stopping tolerance. For this use

649_Figure1.png

where wi,j(k) is the kth iterate and τ is the stopping tolerance, which you should make an input parameter for your code. Compute and plot Rk for each iteration.

In your tests, use n = 64 and n = 128, wi,j(0) = 0, and

f(x, y) = sin3(3πx)cos(πy).

Plot your final iterate for each method.

Reference no: EM131299227

Questions Cloud

Why then does the circuit of figure oscillate : In our study of oscillators, we concluded that a loop containing only two poles cannot oscillate (unless both are at the origin). Why then does the circuit of Figure oscillate?
Discuss the campus newspaper’s arithmetic : The answer given was that "the figures for the fall semester are approximately 12 percent for the girls and 15-18 percent for the guys, which produces a ‘Greek' figure of approximately 27-30 percent of the undergraduates." Discuss the campus newsp..
What would the equilibrium price be : Assume that the market demand for milkshakes is as follows:
Write a research report that cover a description of each erp : Write a minimum of three page research report, using current APA formatting. The report should cover the previously listed MS Dynamics ERP systems, a description of each ERP and list and description of each associated models.
Compute a matrix vector multiplication : Math 571 Programming Exercise Assignment. You should not explicitly form the stiffness matrix A. Instead, if you need to compute a matrix vector multiplication Ax, where x is an arbitrary vector, you should instead use the stencil form as above. In..
Critical slides of your presentation and placement : Create a 12-slide presentation. Follow the outline on pp. 343-346 for the critical slides of your presentation and their placement - Did not submit or incompletely followed the outline on pp. 343-346 for the critical slides of your presentation and..
Must the clock transition be abrupt for the d latch : Must the clock transition be abrupt for the D latch of Figure to operate properly? Consider a clock transition time on the order of the time constant at X and Y.
How about ethernet sata firewire usb media cards : How about Ethernet, SATA, FireWire, USB (2.0 or 3.0), media cards? Think of the data transfer/exchange requirements and what kind of speeds are necessary to make them work effectively.
What is the population for this sample survey : Find the margin of error. Should the commissioner of baseball punish Major League Baseball players named in the Mitchell report on steroid use in baseball for having used steroids? A poll of 413 professional baseball fans found that 248 said "Yes...

Reviews

Write a Review

Engineering Mathematics Questions & Answers

  Average of customers waiting in line

1. A research study performed at checkout lines at Publix Supermarket in South Florida revealed that between 4pm and 7pm on weekdays there is an average of 4 customers waiting in line. What is the probability that you visit a Publix today during t..

  Define the hausdorff metric

Let (X, d) be a metric space, and let K(X) be the space of all nonempty compact subsets of X. We define the Hausdorff metric dH on K(X) as follows: for A, B ∈ K(X), dH(A, B) is the smallest ε such that for every point a in A

  Question know the different type of taxes and their rates

question know the different type of taxes and their rates in spokane wa. also describe the tax rates that individuals

  Cmpute the condition number for each root of the equation

1- compute the condition number of each eigenvalues of the matrix 0 -1 1 2b and determine for which values of b the

  Accept the results better

Looking back at the data examples you have provided in the previous discussion questions on this issue, how might adding confidence intervals help managers accept the results better? Why?

  The dewright company is considering three new products to

the dewright company is considering three new products to replace current models that are being discontinued so their

  What can you say about the robustness of your algorithm

Now plot the error against 1: for the same range as in part (b) (you might want to use a log scale for the y-axis). How does the error behave? "What can you say about the accuracy of your algorithm? What can you say about the robustness of your alg..

  Modifications of the tatham capital budgeting model

Need LP tutorial help involving optimization and the use of Solver. Solve the following modifications of the Tatham Capital Budgeting model (solve each part independently of the others)

  What is the minimum distance that connects all the nodes

Given the following distances between destination nodes, what is the minimum distance that connects all the nodes?

  Growth at a reasonable price investor

If a reasonable risk-adjusted discount rate for MRK is 15%, use the constant growth model to calculate the highest P/E ratio aggressive growth-stock investors would be willing to pay for MRK. Would MRK appeal to growth at a reasonable price invest..

  Impacts of recent events involving the u.s. economy

Describe a situation in your business or personal life that required research. You also may describe a current situation that will require research in the future.

  Find the distribution of the distance

Suppose that stars are distributed in space according to a 3-dimensional Poisson process with parameter λ (for simplicity, take space to be R3 without worrying about whether the universe is finite or infinite). You are at the origin. Find the distri..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd