matlab怎么解决这个问题: s1=1^10;s2=2^10-nchoosek(2,1)*s1; s3=3^10-nchoosek(3,2)*s2-nchoosek(3,1)*s
matlab怎么解决这个问题: s1=1^10;s2=2^10-nchoosek(2,1)*s1; s3=3^10-nchoosek(3,2)*s2-nchoosek(3,1)*s
日期:2011-03-23 18:56:06 人气:3
>> for k=1:1:10
s(k)=k^10;
for i=k-1:-1:1
s(k)=s(k)-nchoosek(i+1,i)*s(i);
end
end
>> s
s =
1.0e+009 *
Columns 1 through 9
0.0000 0.0000 0.0001 0.0008 0.0054 0.0235 0.0807 0.2262 0.6036
Col