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

  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