程序:
data aa;
input x1 x2 x3 x4 x5;
n = _n_;
cards;
99 94 93 100 100
99 88 96 99 97
100 98 81 96 100
93 88 88 99 96
100 91 72 96 78
90 78 82 75 97
75 73 88 97 89
93 84 83 68 88
87 73 60 76 84
95 82 90 62 39
76 72 43 67 78
85 75 50 34 37
;
run;
data aa;
set aa;
do t=-3.14 to 3.14 by 0.0001;
f=x1/sqrt(2)+x2*sin(t)+x3*cos(t)+x4*sin(2*t)+x5*cos(2*t);
output;
end;
run;
proc sgplot data =aa noautolegend;
series x = t y = f/group =n;
xaxis values =(-3.14 to 3.14 by 0.0001);
run;
大家跑跑吧!!
1# peijiamei