这个式子怎么用matlab运算?能写下代码么……

来源:学生作业帮助网 编辑:六六作业网 时间:2024/10/04 02:02:32
这个式子怎么用matlab运算?能写下代码么……这个式子怎么用matlab运算?能写下代码么……这个式子怎么用matlab运算?能写下代码么……我试了一下,代码如下:clc;clear;p=0forx

这个式子怎么用matlab运算?能写下代码么……
这个式子怎么用matlab运算?能写下代码么……

这个式子怎么用matlab运算?能写下代码么……
我试了一下,代码如下:
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)数据太大了,无法计算