What is the degree p of this polynomial

Assignment Help Computer Engineering
Reference no: EM132078944

You need help representing the function given by the Matlab code above on the interval [0,2] by a polynomial P(x). The specific form of f(x) is not given but you know how to evaluate this function at any given point x (by calling the Matlab function). The function evaulation is costly, so you can compute the values only at 6 points xi in the interval [0,2].

(a) What is the best choice (i.e. minimizing the interpolation error) of points x1,x2,x3,x4,x5,x6? Give the formula for xi and using Matlab produce a table with numerical values of xi and corresponding values f(xi)

(b) Use the interpolation points xi and the values f(xi) to construct the interpolating polynomial P(x). What is the degree p of this polynomial? Express this polynomial in the form P(x)= ao + a1x + ... + apx^p (i.e. find the values of the coefficients).

(c) Use the constructed interpolation polynomial to approximate the integral of f(x) from [0,2]. (perform explicit calculations for integral(P(x)dx) from [0,2], substitute numerical values computed for ak and then evaluate the integral).

Math 353 d) Type the code below into a MATLAB file funf.m (both functions funf and law are entered in the single file funf.m exactly as typed below.

Make sure that everything is entered exactly as displayed below. function y fun f (x) [0 10] zo ode 45 (01aw, [0 x+0.1] ,z0) y Z (end, 1) end function dz law (t ,z) dz zeros (2,1) dz (1) z (2) dz (2) 9.8 z (1)-2*z (2) end.

Then evaluate the finite difference formulas derived above at 1 and h 10 2. Report the results and compare the accuracy of the derived formulas.

Reference no: EM132078944

Questions Cloud

Prepare a journal entry to correct the errors : The December 31, 2016, inventory of Tog Company, based on a physical count, was determined to be $450,000. Prepare a journal entry to correct the errors
Calculate the overall speedup of a system : Calculate the overall speedup of a system that spends 40% of its time in calc with a processor upgrade that provides for 100% greater throughput.
Modify the outcome of an enzymatic reaction : How an acidic fluid will modify the outcome of an enzymatic reaction using these materials pH paper,hydrogen peroxide solution, plastic
Prepare the journal entry on july for ellsbury : Kickapoo pays Ellsbury on July 15, 2014, and Ellsbury delivers the machine on July 31, 2014. Prepare the journal entry on July 1, 2014, for Ellsbury
What is the degree p of this polynomial : What is the best choice (i.e. minimizing the interpolation error) of points x1,x2,x3,x4,x5,x6? Give the formula for xi and using Matlab produce a table.
Study gene expression in cancerous versus noncancerous : What are two methods you could use to study gene expression in cancerous versus noncancerous cells.
What is the unknown molar concentration of the ion : Fit the raw data and determine the best equation to linearize the data .What is the unknown molar concentration of the ion .
How is mitotic metaphase similar to metaphase : How is mitotic metaphase similar to metaphase I of meiosis I and how are they different from each other?
What is the combined number of units of the two products : The company's total fixed costs are expected to be $280,000. Based on this information, what is the combined number of units of the two products

Reviews

Write a Review

Computer Engineering Questions & Answers

  What is the difference between a station and a node

What is the difference between a station and a node? What are the main characteristics of a circuit switched network? What are its advantages and disadvantages?

  List examples of action that might benefit from applying PKI

List three examples (other than those listed in the chapter) of everyday actions that might benefit from applying PKI.

  Write a matlab program that accepts a code number

write a matlab program that accepts a code number and an input string and outputs a coded version of the string. wtite a second program that accepts a code number and a scrambled string , and decodes it, outputting the original sentence.

  Examine the results that were attained by disney

Examine the results that were attained by Disney. Discuss the type of challenges a large organization such as Disney likely encountered.

  Write a program to convert floating point to nearest integer

Write a program to convert floating point to nearest integer, using file input and output. The output should identify both input value and the rounded value.

  Wat are the merits and demerits of easily obtainable

what are the advantages and disadvantages of easily obtainable information? what are the advantages and disadvantages

  Explain how vb .net uses a database

express how VB .NET uses a database. Briefly summarize the components of a database and the characteristics of a DBMS. Include a discussion of ADO .NET and its capabilities.

  Write a driver program to test your package

Write a driver program to test your package. Why do we use types instead of subtypes for these six units? How would you classify this package?

  Program to insert the name cervantes

"In the following exercises, suppose that the Simple combo box appears as shown and that the Sorted property is set to True. Give a statement or statements that will carry out the stated task."

  What is the word describe sql

what is the word describe SQL

  Modify existing structures inside the decode stage

CS 520: Computer Architecture and Organization Homework. For the purpose of this question, you are allowed to add new data structures or modify existing structures inside the decode stage. Also assume that each cluster has limited capacity in terms..

  Write a prolog program which defines the predicate fib

Write a PROLOG program which defines the predicate fib (I, X), where I is a positive integer and X is the I- Fibonacci number.

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