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

  Cross-cultural opportunities and conflicts in canada

Short Paper on Cross-cultural Opportunities and Conflicts in Canada.

  Sociology theory questions

Sociology are very fundamental in nature. Role strain and role constraint speak about the duties and responsibilities of the roles of people in society or in a group. A short theory about Darwin and Moths is also answered.

  A book review on unfaithful angels

This review will help the reader understand the social work profession through different concepts giving the glimpse of why the social work profession might have drifted away from its original purpose of serving the poor.

  Disorder paper: schizophrenia

Schizophrenia does not really have just one single cause. It is a possibility that this disorder could be inherited but not all doctors are sure.

  Individual assignment: two models handout and rubric

Individual Assignment : Two Models Handout and Rubric,    This paper will allow you to understand and evaluate two vastly different organizational models and to effectively communicate their differences.

  Developing strategic intent for toyota

The following report includes the description about the organization, its strategies, industry analysis in which it operates and its position in the industry.

  Gasoline powered passenger vehicles

In this study, we examine how gasoline price volatility and income of the consumers impacts consumer's demand for gasoline.

  An aspect of poverty in canada

Economics thesis undergrad 4th year paper to write. it should be about 22 pages in length, literature review, economic analysis and then data or cost benefit analysis.

  Ngn customer satisfaction qos indicator for 3g services

The paper aims to highlight the global trends in countries and regions where 3G has already been introduced and propose an implementation plan to the telecom operators of developing countries.

  Prepare a power point presentation

Prepare the power point presentation for the case: Santa Fe Independent School District

  Information literacy is important in this environment

Information literacy is critically important in this contemporary environment

  Associative property of multiplication

Write a definition for associative property of multiplication.

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