实验名称最小二乘逼近实验目的和 要 求1 掌握最小二乘逼近的的基本思路和步骤2 培养使用matlab 软件编程及上机调试能力实验内容和步骤:实验内容:用最小逼近法计算以下3 题:1、Given the table Xi -2 -1 0 1 2 Yi -0
6 Solve a quadratic and cubic fitting functions respectively with the least squares method 2、Find the least squares polynomials of degree1,2and 3 for the data in the following table
Compute the error in each case
Graph the data and the polynomials
1 Yi 1
18 3、Given the data: Xi 4
1 Yi 102
56 113
18 130
11 142
05 167
53 195
14 224
87 256
73 299
50 326
72 (1) Construct the least squares polynomials of degree 1,2and 3, and compute the errors
(2)Construct the least squares approximation of the form beax, and compute the errors 试验步骤:1)实验编程2)运行结果实验过程1、Given the tabl