Question: Program Assignment 0 3 B fits a 3 rd order polynomial to a set of X & Y data points and prints the polynomial equation
Program AssignmentB fits a rd order polynomial to a set of X & Y data points and prints the polynomial equation on the screen. You should complete the following program by developing the FitrdOrdPoly subroutine. This subroutine takes the data points in terms of a pair of same length vectors as X and Y and fits a order polynomial using Least Squares Method. The output of the subroutine is a vector which elements are the polynomial coefficients. Use Microsoft excel to plot X vs Y data set, and X vs the rd order polynomial equation from your code on the same graph.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
