Solve the system using the jacobis method

Assignment Help Engineering Mathematics
Reference no: EM13979648

In this assignment, we will study the solution of a linear system using iterative methods. The system comes from the discretization of a two-dimensional PDE, Poisson's equation. For an integer size n, it can be created with the MATLAB code

A = delsq(numgrid('S', n+2)) * (n+1)^2;

b = ones(n^2, 1);

which produces a matrix A of size N ×N where N = n2.

1. Solve the system Ax = b for n = 50 using the following 6 methods, all starting from the zero initial vector.

(a) Jacobi's method

(b) The Gauss-Seidel method

(c) The SOR method, with ω = 2/(1 +√8/(n + 1))

(d) The Conjugate Gradient (CG) method

(e) The Preconditioned CG method, using M = the tridiagonal part of A

(f) The Preconditioned CG method, using M = RtR where R is computed by the MATLAB command R = ichol(A);. Note: Do not form the matrix M explicitly, but use two backslashes involving Rt and R. Perform 1000 iterations with each method and compute the ∞-norm of the error at each iteration. Plot the convergence (errors vs. iteration) of the methods in a semi-log plot.

2. Solve the system again using the 6 methods above, but for the values n = 5,10,20,50,100. Iterate until the error is less than 10-6 times the initial error, but not more than 1,000 iterations. Plot the number of iterations vs. the system size N in a log-log plot.

3. Using the plot in 2. and assuming that the computational time for each iteration is proportional to N, estimate the exponent p in the total solution time T = constant·Np for each of the methods

Reference no: EM13979648

Questions Cloud

Calculate the total work required to create arrangement : Using the method of your choice (there are 2 we discussed in class), calculate the total work required to create this arrangement.
Which direction does the current flow though the bar : Eventually the magnetic force on the bar due to the induced current exactly balances the weight (Mg) of the bar, and the acceleration of the bar becomes zero. After that point, the bar continues to fall with a constant, terminal, velocity. Determi..
What is the probability that no sales are made : A salesperson either makes a sale (S) or does not make a sale (N) with each of two potential customers.The simple events and their probabilities are given below.
Calculate the electric potential at a distance : Use this result to calculate the electric potential at a distance x along the central axis of an annulus (a solid disk with a hole in the middle) of inner radius a, outer radius b, and total charge Q.
Solve the system using the jacobis method : Solve the system using the Jacobi's method, the Gauss-Seidel method and the Conjugate Gradient (CG) method.
What is its maximum speed : The horizontal position of a smiple harmonic oscillator as a function of time is given by the following function : x(t) = (2.50cm) sin ((24 rad/s) t). What is its maximum speed?
Place the name block in the upper left corner of the page : Calculations: On merged cells, use only the left side for use in formulas. If your formulas span two columns, you may add some numbers twice.
Find the angle with respect to the horizontal : A horizontal ray goes through a triangular glass prism. One angle at the base of the prism is 65o, another one is the right angle, as shown in the figure. Find the angle θ with respect to the horizontal, at which the ray comes out of the prism. The r..
What is electrical energy stored initially by the capacitor : A charged capacitor and an inductor are connected as shown in the drawing. What is the electrical energy stored initially by the charged capacitor? Find the maximum current in the inductor.

Reviews

Write a Review

Engineering Mathematics Questions & Answers

  Describe the global implications

Describe the global implications that status has for an international manager in Western culture, with two (2) original examples.

  Resources used in the production of wine

If the vineyard could secure one additional unit of any of the resources used in the production of wine, which one should it select? (Use shadow price)

  Design that shaft

The shaft is drive shaft for a large bulk material conveyor.the gear receives 40hp and rotate at 120rpm.each chain sprocket delivers 20hp to one side of the conveyor. Use AISI 1020 cold-drawn steel. Design that shaft.

  Explaining the sensitivity information

Develop and solve a linear optimization model to determine the optimal mix to maximize profit and write a short memo to the president Kathy Chung explaining the sensitivity information in language that she can understand.

  Matrix multiplication and with the identity matrix

Define a linear map T from the vector space C to the vector space and matrix multiplication and with the identity matrix

  State the complimentary slackness conditions

The maximum size of a triangle packing in G is denoted ν(G), and the minimum size of a triangle cover in G is denoted τ (G).

  Problem regarding the compression process

An air-standard Diesel cycle has a compression ratio of 18.2. Air is at 80°F and 14.7 psia at the beginning of the compression process and at 3000 R at the end of the heat addition process. Accounting for the variation of specific heats with tempe..

  Histogram for gaussian normal random variable

1. A histogram for Gaussian "Normal" random variable X_1 with zero-mean and unit variance. Calculate its mean and variance.  2. Repeat 1 for a uniformly distributed random variable X_2 on the interval [-1,1]

  Find the total balance

Now, use the model you developed to find the total balance after 5 years if a person starts with an initial deposit of $500 on the first day of a given month and deposits $100 on the first day of every subsequent month.

  Statistics for independent simple random samples

Provided below are summary statistics for independent simple random samples from two populations. x(bar 1)=22, s1=6, n1=21, x(bar2)=23, s2=7, n2=15.

  Find the analytical solution to the differential equation

Find the analytical solution to the differential equation and Express the second order ODE as a system of two first order ODEs

  How do we distinguish relations from functions

How do we distinguish relations from functions? Reduce the following Boolean product to zero OR a fundamental product: xyx'z.c Write the dual of the following Boolean equation: a+a'b = a+b.

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