SFWRTECH 4MA3 An X n Hilbert matrix has entries Hij Challenge Project 1 1 i+j-1' n...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
SFWRTECH 4MA3 An X n Hilbert matrix has entries Hij Challenge Project 1 1 i+j-1' n 2 3 : so it has the form 1 1/2 1/3 1/2 1/3 1/4 1/3 1/4 1/5 : : : For n = 2, 3, 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 H = b to obtain the approximate solution . Find the ∞ -norm of the residual r = b − Hî and of the error Ax: = - 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: 1. Your PDf submission should include the complete algorithm package including the following functions: GaussElimination, forwardSubstitution, backwardSubstitution, generatorHb that work for a general n × n matrix and n-vector. 2. You cannot use a built-in Gauss elimination or LU decomposition functions of the program. 3. For each n, your program should print the following vectors: Î, Ax, r 4. As part of your solution, you should present the following table in your PDF file ||1|| 00 Cond(H) 5. Finally, you should also identify the n at which the error goes to 100% SFWRTECH 4MA3 An X n Hilbert matrix has entries Hij Challenge Project 1 1 i+j-1' n 2 3 : so it has the form 1 1/2 1/3 1/2 1/3 1/4 1/3 1/4 1/5 : : : For n = 2, 3, 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 H = b to obtain the approximate solution . Find the ∞ -norm of the residual r = b − Hî and of the error Ax: = - 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: 1. Your PDf submission should include the complete algorithm package including the following functions: GaussElimination, forwardSubstitution, backwardSubstitution, generatorHb that work for a general n × n matrix and n-vector. 2. You cannot use a built-in Gauss elimination or LU decomposition functions of the program. 3. For each n, your program should print the following vectors: Î, Ax, r 4. As part of your solution, you should present the following table in your PDF file ||1|| 00 Cond(H) 5. Finally, you should also identify the n at which the error goes to 100%
Expert Answer:
Answer rating: 100% (QA)
Python code import numpy as np n inputHow many constants in b pri... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
How do you think the business is going to change next year? Do you think that the company is facing any challenges?
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-5. Ivan's grandfather died and left a portfolio of municipal bonds. In 2012, they pay Ivan...
-
Susan recently quit working for a local firm and has yet to find a new job. She knows she can maintain her health insurance from her old employer due to COBRA. How much will it likely cost her for...
-
Take a look at both panels of Figure 27-1. Suppose that we are willing to accept both federal regulatory spending per year and the annual number of Federal Register pages as measures of the extent of...
-
Ms. Suzy Wetlaufer, then-editor of the Harvard Business Review, interviewed former GE CEO and business legend, Jack Welch, for a piece in the business magazine. She asked in December 2001 that the...
-
Gustavo has received a promising job offer from XYZ Company. He would earn $25,000 a year. In addition, he would receive two weeks of paid vacation, five paid personal days, and five sick days. He...
-
Janes Auto Care is considering the purchase of a new tow truck. The garage doesnt currently have a tow truck, and the $60,000 price tag for a new truck would represent a major expenditure. Jane...
-
UniversalElectronics is considering the purchase of manufacturing equipmentwith a 10-year midpoint in its asset depreciation range (ADR).Carefully refer to Table 12??11 to determine in what deprec...
-
If pp annihilation at rest proceeds via S-states, explain why the reaction pp 0 0 is forbidden as a strong or electromagnetic interaction.
-
Determine whUse 4-point bins (96 to 99, 92 to 95, etc.) to make a frequency table for the set of exam scores shown below. Include columns for relative frequency and cumulative frequency. ether the...
-
How do endocrine signaling pathways, including gonadotropin-releasing hormone (GnRH), follicle-stimulating hormone (FSH), luteinizing hormone (LH), and sex steroids, regulate reproductive physiology...
-
1 9 8 9 C Corporation had gross income of $ 2 5 0 , 0 0 0 , cost of goods sold of $ 8 0 , 0 0 0 . entertainment of $ 2 0 , 0 0 0 , lobbying of $ 5 , 0 0 0 , other expenses of $ 8 8 , 0 0 0 . What is...
-
Sales are 600 000 Gross profit is 220 000 Other operating expenses are 120 000 Income tax rate is 30% Calculate net earnings
-
Executive Suites operates a 100-suite hotel in a busy business park. During April, a 30-day month, Executive Suites experienced a 90% occupancy rate from Monday evening through Thursday evening...
-
How much must be deposited at the end of each two-month period in an account that pays 9.13% annually with bimonthly capitalization, to accumulate $529,137 pesos at the end of 9 years and 10 months.
-
If both Ray and Matias are single and Ray has a current-year loss of $56,000 from a sole proprietorship, how much trade or business loss can each deduct on his tax return in the current year
-
Should U.S. antidumping laws be stated in terms of average total costs or average variable costs?
-
For each of the following situations, indicate whether the taxpayer(s) is (are) required to file a tax return for 2012. Explain your answer. a. Helen is a single taxpayer with interest income in 2012...
-
In June of 2012, Maureen's house is vandalized during a long-term power failure after a hurricane hit the city. The president of the United States declares Maureen's city a disaster area as a result...
-
Kathy Kennedy (age 44) is a single taxpayer and she lives at 212 North Pine Way, Payson, AZ 85541. Her Social Security number is 467-98-9784. Kathy's earnings and income tax withholding as the...
-
12. ROLE REVERSAL Write a multiple choice question that deals with the liability of principals for the acts of their employees.
-
Acting as an undisclosed principal, William Zeckendorf employed agents to purchase the land in New York on which the United Nations headquarters was ultimately built. Can you find any other examples...
-
Question: When Shiloh interviewed for a sales job at a medical supply company, the interviewer promised that she could work exclusively selling medical devices and would not have to be involved in...
Study smarter with the SolutionInn App