Problem 3 (15 points) (Core Course Outcomes 1,4 & 12) For problem 2 reporting results with at least 5 significant digits, a) calculate and report (=print) the order of accuracy p using linear least squares regression for the entire range of hk values where truncation errors dominate. Give (=print) the range of k values used for the fit, i.e., the minimum and maximum k values used for the fit. b) calculate and report (=print) the order of accuracy p using linear least squares regression for the entire range of hk values where round-off errors dominates. Give (=print) the range of k values used for the fit, i.e., the minimum and maximum k values used for the fit. You do not have to determine the ranges of k values for a) and b) automatically in code, but can determine them from the graph of problem 2 and then set them in your script. Required submission: well commented script source code included in your Gradescope submission; printout of requested results in your Gradescope submission;
Problem 3 (15 points) (Core Course Outcomes 1,4 & 12) For problem 2 reporting results with at least 5 significant digits, a) calculate and report (=print) the order of accuracy p using linear least squares regression for the entire range of hk values where truncation errors dominate. Give (=print) the range of k values used for the fit, i.e., the minimum and maximum k values used for the fit. b) calculate and report (=print) the order of accuracy p using linear least squares regression for the entire range of hk values where round-off errors dominates. Give (=print) the range of k values used for the fit, i.e., the minimum and maximum k values used for the fit. You do not have to determine the ranges of k values for a) and b) automatically in code, but can determine them from the graph of problem 2 and then set them in your script. Required submission: well commented script source code included in your Gradescope submission; printout of requested results in your Gradescope submission;
Linear Algebra: A Modern Introduction
4th Edition
ISBN:9781285463247
Author:David Poole
Publisher:David Poole
Chapter7: Distance And Approximation
Section7.3: Least Squares Approximation
Problem 31EQ
Related questions
Question

Transcribed Image Text:Problem 3 (15 points) (Core Course Outcomes 1,4 & 12)
For problem 2 reporting results with at least 5 significant digits,
a) calculate and report (=print) the order of accuracy p using linear least squares regression for the entire range of hk values where
truncation errors dominate. Give (=print) the range of k values used for the fit, i.e., the minimum and maximum k values used
for the fit.
b) calculate and report (=print) the order of accuracy p using linear least squares regression for the entire range of hk values where
round-off errors dominates. Give (=print) the range of k values used for the fit, i.e., the minimum and maximum k values used
for the fit.
You do not have to determine the ranges of k values for a) and b) automatically in code, but can determine them from the graph of
problem 2 and then set them in your script.
Required submission:
well commented script source code included in your Gradescope submission;
printout of requested results in your Gradescope submission;
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps

Recommended textbooks for you

Linear Algebra: A Modern Introduction
Algebra
ISBN:
9781285463247
Author:
David Poole
Publisher:
Cengage Learning

Functions and Change: A Modeling Approach to Coll…
Algebra
ISBN:
9781337111348
Author:
Bruce Crauder, Benny Evans, Alan Noell
Publisher:
Cengage Learning
Algebra & Trigonometry with Analytic Geometry
Algebra
ISBN:
9781133382119
Author:
Swokowski
Publisher:
Cengage

Linear Algebra: A Modern Introduction
Algebra
ISBN:
9781285463247
Author:
David Poole
Publisher:
Cengage Learning

Functions and Change: A Modeling Approach to Coll…
Algebra
ISBN:
9781337111348
Author:
Bruce Crauder, Benny Evans, Alan Noell
Publisher:
Cengage Learning
Algebra & Trigonometry with Analytic Geometry
Algebra
ISBN:
9781133382119
Author:
Swokowski
Publisher:
Cengage

Elementary Linear Algebra (MindTap Course List)
Algebra
ISBN:
9781305658004
Author:
Ron Larson
Publisher:
Cengage Learning


Algebra and Trigonometry (MindTap Course List)
Algebra
ISBN:
9781305071742
Author:
James Stewart, Lothar Redlin, Saleem Watson
Publisher:
Cengage Learning