ublep12=-0.1229;doublep03=-0.08907;inti;for(i=1;i<=31;i++){x[i]=30;}for(i=1;i<=31;i++){y[i]=i-11;}for(i=1;i<=31;i++){z[i]=p00+p10*x[i]+p01*y[i]+p20*x[i]*x[i]+p11*x[i]*y[i]+p02*y[i]*y[i]+p30*x[i]*x[i]*x[i]+p21*x[i]*x[i]*y[i]+p12*x[i]*y[i]*y[i]+p03*y[i]*y[i]*y[i];}for(i=1;i<=31;i++){cout<<z[i]<<endl;}return0;}第二个程序:#include<bits/stdc++.h>usingnamespacestd;intmain(){doubley;doublew=0.7267;doublex=-7;doublea0=33.73;doublea1=-0.7881;doubleb1=-1.525;doublea2=-1.04;doubleb2=-0.1092;doublea3=-1.196;doubleb3=-2.07;doublea4=-0.51;doubleb4=-0.07145;doublea5=0.6295;doubleb5=-0.07075;doublea6=1.13;doubleb6=-1.743;y=a0+a1*cos(x*w)+b1*sin(x*w)+a2*cos(2*x*w)+b2*sin(2*x*w)+a3*cos(3*x*w)+b3*sin(3*x*w)+a4*cos(4*x*w)+b4*sin(4*x*w)+a5*cos(5*x*w)+b5*sin(5*x*w)+a6*cos(6*x*w)+b6*sin(6*x*w);cout<<y<<endl;return0;}