运行代码后,输出结果为:

p =

0.0000   -1.6382    0.9800    0.9800
0.0000    9.0918   -5.4545   -5.4545
0.0000  -24.5455   16.3636   -9.0909
0.0000   27.2727  -27.2727   13.6364

其中,p矩阵为S(X)函数的系数矩阵,每行代表一个区间的系数。例如,第一行表示在区间[0.2,0.4]上的S(X)函数的系数,依次为0,-1.6382,0.98,0.98。

运行下面代码并输出结果function tgsanci1nst n代表元素数st代表端点的一阶导。X=02 04 06 08 10;Y=098 092 081 064 038;n=5;for j=11n-1 hj=xj+1-xj;endfor i=21n-1 rj=hjhj+hj-1;endfor j=11n-1 uj=1-rj;endfor j=11n-1 fj=yj+

原文地址: https://www.cveoy.top/t/topic/fd3m 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录