Exercise 1 jacobi and gauss-seidel iterations consider the

Assignment Help Applications of MATLAB
Reference no: EM13348087

Exercise 1 (Jacobi and Gauss-Seidel Iterations) Consider the following linear system

1406_Jacobi and Gauss-Seidel Iterations.png

This is a discrete version of Poisson's equation: ΔΦ = ρ = , which may be written in partial derivatives as ∂2Φ/∂x2 = ρ. Poisson's equation is ubiquitous in physics, arising in electrostatics (Φ is the electric potential and -ρ is the charge density), in gravitation (Φ is the gravitational potential and ρ is the mass density), in uid dynamics (Φ is the velocity and ρ is the negative curl of vorticity), etc. It is also important in image analysis. We will see how this relates to the above matrix equation later in the course.

Construct the A matrix above for a 49 x 49 system. Use the >> help diag command for information about constructing a tridiagonal matrix in MATLAB. Set k = 45 and construct a (rho) vector according to the following rule:

533_Jacobi and Gauss-Seidel Iterations1.png

Verify that the solution Φ* (phistar) that satis es AΦ* = ρ is given by

258_Jacobi and Gauss-Seidel Iterations2.png

Now, program both the Jacobi and Gauss-Seidel methods for solving this problem, and in each case, start the iterations with an initial guess Φ as a column of ones. Continue to iterate each method until every term in the vector Φ converges to within 10-4 of the same term in the previous iteration (this corresponds to norm(phi(:,k+1)-phi(:,k),Inf)<=1.e-4.).

Exercise 2 Consider the following graph representing the probability of the weather tomorrow, given the weather today.

558_Jacobi and Gauss-Seidel Iterations3.png

We may represent these probabilities in a Markov matrix, leading to the following equation:

1614_Jacobi and Gauss-Seidel Iterations4.png

More concisely, we may write

2191_Jacobi and Gauss-Seidel Iterations5.png

(a) Compute the eigenvalues and eigenvectors of the matrix A using the eig command. Rear-range the eigenvalues as a single column vector (hint: use the diag command).

Exercise 3: Consider the following temperature data taken over a 24-hour (military time) cycle:

75 at 1, 77 at 2, 76 at 3, 73 at 4, 69 at 5, 68 at 6, 63 at 7, 59 at 8, 57 at 9, 55 at 10, 54 at 11,52 at 12, 50 at 13, 50 at 14, 49 at 15, 49 at 16, 49 at 17, 50 at 18, 54 at 19, 56 at 20, 59 at 21, 63at 22, 67 at 23, 72 at 24.

(a) Fit the data with the parabolic fi t

f(x) = Ax2 + Bx + C

and calculate the E2 error. Use polyfit and polyval to get your results. Evaluate the curve f(x) for x = 1 : 0:01 : 24 and save this in a column vector.

Reference no: EM13348087

Questions Cloud

Quantitative analysis decision makingquestion 1- explain : quantitative analysis decision makingquestion 1- explain the advantages and disadvantages of two time-series analyses.
Design and implement a small and simple email server using : design and implement a small and simple email server using the concept of web based information system. your system
Powerpoint presentation review both milton friedmans : powerpoint presentation review both milton friedmans traditional view of business responsibility and archie carrolls
Part 1come up with a goal calculate constraints and : part 1come up with a goal calculate constraints and formulate a reasonable investment policy statement.part 2select
Exercise 1 jacobi and gauss-seidel iterations consider the : exercise 1 jacobi and gauss-seidel iterations consider the following linear systemthis is a discrete version of
1 functional dependenciesconsider a relation r : 1. functional dependenciesconsider a relation r abcdefghjnbspwith the following functional dependenciesab --gt cdh --gt
Prepare shipman enquiry reportshipman enquiry is an enquiry : prepare shipman enquiry reportshipman enquiry is an enquiry report. it relates to the investigations on serial killing
The impact of trips agreement upon the registration system : the impact of trips agreement upon the registration system in saudi arabiasaudi arabia has changed a number of laws and
Are you familiar with the swift even flow to practice : are you familiar with the swift even flow to practice concept.write a two page summary on a particular process in any

Reviews

Write a Review

Applications of MATLAB Questions & Answers

  Exercises1make a program that will graph the following

exercises1.make a program that will graph the following parabolas where x ranges from -10 to 10 in increments of 0.1.

  Q1 filter function form is y myfilterxba where x is

q1 filter function form is y myfilterxba where x is input y is output and a and b are the iir and fir

  1 we can represent the equation of a circle

1. we can represent the equation of a circle parametrically by

  Problem 1nbsp use matlab to answer the following system of

problem 1.nbsp use matlab to answer the following system of linear equations2x y 3z 1 2x 6y 8z 3 6x 8y 18z 5

  If a is an m by n rectangular matrix with m gt n and if c

if a is an m by n rectangular matrix with m gt n and if c is a vector with n components then a c y can not usually be

  You will write functionsbull bnull basisatolbull brange

you will write functionsbull bnull basisatolbull brange basisatolthe function null basis takes a matrix a as input and

  1 given the following actual cpu burst for a tasknbsp 6 4 6

1. given the following actual cpu burst for a tasknbsp 6 4 6 4 13 13 13 and an initial best guess at the burst as 10

  Please write project report and provide cross-synthesis an

please write project report and provide cross-synthesis. an interesting effect in electronic music synthesis is to

  In a shell-and-tube heat exchanger one fluid passes through

in a shell-and-tube heat exchanger one fluid passes through a central tube while another fluid flows through an outer

  Regarding the program i want the following1we know that

regarding the program i want the following1.we know that there is a symmetry in the rod so the point at 0.2 must be

  You will write a functionqr mygsqratypethe function mygsqr

you will write a functionqr mygsqratypethe function mygsqr should take as inputs an m times n real matrix a with m ge

  Problem 1a barometer is used to measure atmospheric

problem 1a barometer is used to measure atmospheric pressure and is filled with a high-density fluid. the pressure p

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