PersonalCorpus 版 (精华区)
·计算多项式的参数
b=[0.027 20.67 34.367 35.851 36.365 37.128];
a=[10941397 11824027 12409344 12472667 12494652 12526975];
format long e
polyfit(a,b,3)
polyfit(a,b,2)
三阶:
a1=5.419807607809621e-020
a2=-1.898837333404582e-012
a3=4.553867376989072e-005
a4=-3.419028001183906e+002
x= 10941329 y= 2.540269907586890e-002
△= 0.026-y= 5.973009241311035e-004
x=10941537 y= 3.028063847818885e-002
△= 0.036-y= 5.719361521811149e-003
x= 11826020 y= 2.071660411449756e+001
△=20.719-y=2.395885502444628e-003
x= 11824730 y= 2.068646088920082e+001
△ =20.686-y= -4.608892008164389e-004
x= 12524243 y= 3.706204337410219e+001
△ = 37.056-y=-6.043374102191024e-003
x= 12491980 y= 3.630466039490375e+001
△ =36.298-y= -6.660394903747147e-003
x= 12475002 y= 3.590620836615125e+001
△ =35.907-y= 7.916338487490293e-004
x= 12421890 y= 3.466021228052267e+001
△=34.662-y= 1.787719477327698e-003
二阶:
a1=1.334486948807113e-014
a2=2.308303822974259e-005
a3=-2.541310908825855e+002
x= 10941329 y= 2.557480309280891e-002
△ = 0.026-y= 4.251969071910923e-004
x=10941537 y= 3.043681603469395e-002
△ = 0.036-y= 5.563183965306050e-003
x= 11826020 y= 2.071572425634599e+001
△ =20.719-y=3.275743654008068e-003
x= 11824730 y= 2.068553999216772e+001
△ =20.686-y= 4.600078322809509e-004
x= 12524243 y= 3.705972077737397e+001
△ = 37.056-y=-3.720777373970918e-003
x= 12491980 y= 3.630422209212043e+001
△ =36.298-y= -6.222092120424350e-003
x= 12475002 y= 3.590666152006327e+001
△ =35.907-y= 3.384799367296409e-004
x= 12421890 y= 3.466302895603536e+001
△ =34.662-y= -1.028956035362683e-003
;
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:2.931毫秒