COMP 350 Numerical Computing Assignment Problem

Assignment Help Other Subject
Reference no: EM132385809

COMP 350 Numerical Computing Assignment - Floating Point Arithmetic and IEEE Standard, McGill University, Canada

Question 1: GENP and LU Decomposition

Consider the linear system Ax = b defined by

521_figure.png

(a) Use the GENP algorithm to solve the above system by hand. Show intermediate matrices, vectors and multipliers at each step.

(b) Find matrices L1, L2 where L2 is an elementary matrix, and L1 is a product of two elementary matrices such that L2L1A = U, an upper triangular matrix. Then compute a (unit) lower triangular matrix L such that A = LU.

(c) Solve Ly = b by forward substitution to find y.

(d) Solve Ux = y by backward substitution to find x. The value of x should be the same as what you found in part (a).

Question 2: LU Decomposition in Matlab

Write a Matlab function myLU(A) which takes an input matrix A and produces the L,U factors in the LU decomposition of A. Show the output of

>> A = [1 2 3 4; 2 0 3 5; 2 -1 2 7; 1 1 4 9]

>> [L, U] = myLU(A)

Question 3: GEPP

(a) Solve the following system using GEPP (Gaussian elimination with partial pivoting):

1414_figure1.png

Show intermediate matrices, vectors and multipliers at each step. Do the computations by your hands and don't consider any rounding errors.

(b) Compute the LU factorization of the matrix in the previous question with partial pivoting: PA = LU. Show the intermediate results at each step. This question and the previous one can be answered together.

Question 4: Comparing Accuracy of GENP and GEPP

Write a Matlab function compareGENPGEPP(n, N) that compares the answers produced by GENP and GEPP as follows:

1. It creates a sample of N runs (inside a for loop).

2. For each run, it generates of random matrix A of size n x n, a random vector x of size n x 1 and a computes the right-hand-side Ax = b. Use the Matlab function randn to generate these.

3. It runs genp(A,b) and gepp(A,b) on each sample and constructs the log10||xcomputed - x||2 error term between the computed and the true value of x.

4. It plots the iteration index against the error terms for each run. Use red-dot to represent a genp-run and a blue-dot to represent a gepp-run.

Print your matlab code as well as the figure for compareGENPGEPP(200,1000). Comment what conclusion you can draw from your plot.

Question 5: Formulas for Polynomial Series

Consider the problem of finding a formula for the sum of squares and suppose we know the form of the solution:

a0 + a1n + a2n2 + a3n3 = j=0n j2

where the aj are unknown and to be determined.

(a) Using the column vector [a0, a1, a2, a3]T to represent to the polynomial on the left, write the equations for the above for n = 0, 1, 2, 3 into a linear system of the form Ax = b.

(b) Solve the system using Matlab. What is the formula for summing the squares?

(c) Explain how you would generalize this procedure to polynomials of arbitrary degree?

Reference no: EM132385809

Questions Cloud

Compute the cost of the ending work-in-process : The assembly department has no beginning Work-in-Process Inventory. During the month, it started 40,000 cell phones, but only 36,000 were fully completed.
Calculate toms net gain or loss, and indicate the nature : Home Depot stock, purchased 2 years ago for $1,000, was sold by Tom for $2,500. Calculate Tom's net gain or loss, and indicate the nature of the gain or loss
Where in her tax return should martha claim this deduction : The deductible business auto expense is $ Where in her tax return should Martha claim this deduction? The expense should be deducted on Marthas
What is the shareholders basis in the property received : What is the amount of the shareholder's dividend income on the distribution? What is the shareholder's basis in the property received
COMP 350 Numerical Computing Assignment Problem : COMP 350 Numerical Computing Assignment - Floating Point Arithmetic and IEEE Standard, Assessment Help, McGill University, Canada - GENP and LU Decomposition
Is barry required by law to report the income from his lab : Barry has a successful methamphetamine laboratory. Producing methamphetamine is illegal under federal law. Is Barry required by law to report the income.
Calculate sherrys net income from the vacation home : Calculate Sherrys net income (or loss) from the vacation home for this tax year. Base allocation on number months, rather than days
What is the present value of this note : On January 1, 2018, Desert Co. sold goods to Jungle Company. In exchange, Jungle signed a zero-interest-bearing note requiring payment of $200,000.
Calculate the equivalent units and costs per equivalent : Calculate the equivalent units and costs per equivalent unit of material X, material Y, and conversion for the mixing department.

Reviews

Write a Review

Other Subject Questions & Answers

  Social assistance policies

Who should decide the health care treatment available to you - the government? The insurance company? The doctor?

  Define the top priority issues netflix management needs

Which of the following is not one of the top priority issues Netflix management needs to address

  How can end users be more involved in the process

Why is end-user involvement important in health management information systems implementation? How can end users be more involved in the process

  When designing a new processor

When designing a new processor, the following should be considered:

  Localization of behavior-brain relationships

What methods were used to conduct research concerning the localization of behavior/brain relationships? Which method do you feel is the most effective? Why?

  Did it appear that predictive policing is effective

Were you able to make sense of what predictive policing is based on your review of the tweets on this topic?

  Discuss magical moments of connection

The love letter gets at the heart of what people feel during those magical moments of connection with, in this case, a process.

  What do you think about workplace diversity

COMM1007 College English Assignment - Essay, George Brown College, Canada. What do you think about workplace diversity

  Love in the time of cholera by gabriel garcia marquez

This work is saturated with symbols provided by nature. Describe two natural symbols that are repeated in the film. What do these symbols represent?

  Does southwest airlines have a sustainable competitive

Does Southwest Airlines have a sustainable competitive advantage? What strategic recommendations can be made to strengthen the durability of the company's competitive advantage; or do conditions suggest that it is time for a shift in Southwest Air..

  Identify three concepts of intercultural communication

Identify three concepts of Intercultural communication that you can see displayed in the Movie, Insha'Allah Dimanch. Explain these concepts in your own words.

  How improve the business production

Using the following topics, how can you, as an Assistant Manager of Wooforest Bank, help improve the business production: Community development involvement and Better customer service

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