COMP 350 Numerical Computing Assignment

Assignment Help Other Subject
Reference no: EM132400657

COMP 350 Numerical Computing Assignment - McGill University, Canada

Assignment - Polynomial Interpolation, Spline Interpolation, and Least Squares Approximation

Q1. Use your hand to find the Vandermonde form, the Lagrange form, and the Newton form of the interpolating polynomial for these data

x

1

2

3

4

y

2

0

-8

-37

Q2. (Programming by MATLAB) Let f(x) = 1/(1 + 25x2).

(a) Using 7 equally spaced nodes (or knots) on the interval [-1, 1],

i. Find the interpolating polynomial p(x) of degree 6 for f(x) by the Newton approach.

ii. Find the natural cubic spline function S(x) to interpolate f(x).

iii. Find the function g(x) = a + bx2 + cx4 to approximate f(x) by the least squares method.

Print the coefficients of p(x), S(x) and g(x).

Print the four values f(x), f(x) - p(x), f(x) - S(x), and f(x) - g(x) at 13 equally spaced points xi = -1 + (1/6)i for i = 0, 1, . . . , 12.

Plot y = f(x), y = p(x), y = S(x) and y = g(x) on the same plot.

In additional to submitting your MATLAB programs, please put them in a PDF file so that it will be easy for the TA to read (note that the TA may or may not run your MATLAB programs).

(b) Using 7 Chebyshev nodes

xi = cos((2i+1/2n+2)π), i = 0, 1, . . . , n, n = 6

to do the same things as in (a).

(c) Comparing the two plots obtained in (a) and (b), what do you observe?

Note: You are not allowed to use MATLAB built-in functions polyfit, polyval, and spline.

Reference no: EM132400657

Questions Cloud

Briefly describe your level of comfort with the topic : Discussion - Briefly describe your level of comfort with the topic. What challenges, if any, did you face when doing the homework assignment for this week
How effective are the measurement guidelines : How effective are the measurement guidelines that the company is using? Assess whether Caterpillar Inc. is using the appropriate measures to verify
Explain how receptive or non-receptive : Explain how receptive or non-receptive you would be to the salesperson's "sales pitch" and why, given the circumstances involved.
Blind spot analysis : Blind Spot Analysis: what blind spots do you see that may have impacted the decision-making in this dilemma?
COMP 350 Numerical Computing Assignment : COMP 350 Numerical Computing Assignment Help and Solution - McGill University, Canada. Assignment - Polynomial Interpolation and Spline Interpolation
Would you be likely to use that business again : Would you be likely to use that business again? How likely is it that you would tell other people about your experience?
Are there programs that might help small businesses : Are there programs that might help small businesses pay or even defray the costs associated with obtaining funds? How so?
Purpose driven marketing for secret deodorant : Can you please help bring down purpose driven marketing for Secret deodorant late to the hierarchy of needs concept?
Which section in the business plan would : Which section in the business plan would you say plays the biggest role in convincing future investors that their organization is worthy of their investment?

Reviews

Write a Review

Other Subject Questions & Answers

  Create three actual strategic goals for your own health care

Create at least three actual strategic goals for your own health care organization or department or one which you someday hope to lead.

  Discuss radiation therapy and endocrine therapy

Mastectomy on the L side, chemotherapy, radiation therapy, and endocrine therapy. She was deemed cancer-free at her 5-year follow-up

  Review case incident jane was a supervisor

Review Case Incident Jane was a supervisor who discovered a new hire the son of a local poitician was hired at a higher monthly salary. Her boss told her that she would just have to accept it. 11.1,

  Identify at least two criminology theories

Motive is one of the main themes that law enforcement must identify in order to prevent future crimes. Law enforcement utilizes the science of criminology to understand criminality and identify potential criminals. Identify at least two criminolog..

  How did you use intuition in your decision-making process

Describe if you could have been using what we call bounded rationality and how?Finally, what about the third approach to decision-making - intuition? How did you use intuition in your decision-making process? Explain.

  Compare and contrast s/se asia''s economic geography

Compare and contrast S/SE Asia's Economic Geography with the Economic Geographies of other regions. What makes S/SE Asia's Economic Geography so unique

  Analyze the sexual harassment issues presented in scenario

Analyze each of the elements of this case: the applicable defenses and the basis for the court's ruling. Analyze the possible liability in this case if the sexual harasser(s) were an independent contractor versus an employee.

  Evaluation by child protective services

Caylee is a 5-year-old girl who is referred for evaluation by child protective services. She was recently removed from her biological family

  What sort of memory does thomas reply indicate

Trying to make sense of an article in the world events section of the Daily Mirror, Matlock turns to Thomas and asks, "Where's Khartoum?" Thomas, looking up from his coffee, says, "Africa. It's the capital of Sudan." If you hold with the idea that..

  Discuss the social exchange theory

What are some great topics and example essays to write on for an informative critique essay on "referential theory" and also example topics and essays.

  Problem of abortion and the doctrine of the double effect

Foot, “The problem of abortion and the doctrine of the double effect” a. You wake up to find a shut metal bear trap attached to your face and a paralyzed man in front of you. A voice plays over a loudspeaker:

  Describe differences between health services provided

Describe differences between health services provided under Medicare (Part A versus Part B) and Medicaid.

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