Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

SFWRTECH 4 MA 3 Challenge Project 1 A n n Hilbert matrix has entries H i j = 1 i + j - 1 ,

SFWRTECH 4MA3
Challenge Project 1
A nn Hilbert matrix has entries Hij=1i+j-1, so it has the form
[11213cdots121314cdots131415cdots:::ddots]
For n=2,3,dots. , generate a Hilbert matrix H and a n-vector b=Hx using x, a n-vector with all
entries equal to 1. You can generate these via a function generatorHb. Using the
GaussElimination, forwardSubstitution, and backwardSubstitution functions developed in
Assignment 2, solve the system the system Hwidehat(x)=b to obtain the approximate solution widehat(x). Find
the -norm of the residual r=b-Hwidehat(x) and of the error x=widehat(x)-x, where x is the true
solution, i.e., the n-vector with all entries equal to 1. How large can you take n before the error is
100%? Also monitor the cond (H) and see how this varies as a function of n.
Note:
Your PDf submission should include the complete algorithm package including the
following functions: GaussElimination, forwardSubstitution, backwardSubstitution,
generatorHb that work for a general nn matrix and n-vector.
You cannot use a built-in Gauss elimination or LU decomposition functions of the
program.
For each n, your program should print the following vectors: widehat(x),x,r
As part of your solution, you should present the following table in your PDF file
Finally, you should also identify the n at which the error goes to 100%
To pass this challenge project, you must:
The data in point 3 and the table in point 4 in the Note above should be included in your
before your code in the pdf file.
Include the complete code for all the functions. Do not print images of the code or paste
code with a black background.
Obtain the correct answers for widehat(x),x,r for the different values of n
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems For Advanced Applications 9th International Conference Dasfaa 2004 Jeju Island Korea March 2004 Proceedings Lncs 2973

Authors: YoonJoon Lee ,Jianzhong Li ,Kyu-Young Whang

2004th Edition

3540210474, 978-3540210474

More Books

Students also viewed these Databases questions

Question

politeness and modesty, as well as indirectness;

Answered: 1 week ago