这个式子怎么用matlab运算?能写下代码么……
2个回答
展开全部
我试了一下,代码如下:
clc;
clear;
p=0
for x=10:1:19
for y=20:1:29
p=p+nchoosek(100,y)*(x/100)^y*(1-x/100)^(100-y);
end
end
但matlab提示: Result may not be exact. Coefficient is greater than 1.000000e+015 and is
only accurate to 15 digits。
说明在计算C(100,y)数据太大了,无法计算
clc;
clear;
p=0
for x=10:1:19
for y=20:1:29
p=p+nchoosek(100,y)*(x/100)^y*(1-x/100)^(100-y);
end
end
但matlab提示: Result may not be exact. Coefficient is greater than 1.000000e+015 and is
only accurate to 15 digits。
说明在计算C(100,y)数据太大了,无法计算
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询