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

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/03 16:50:28
这个式子怎么用matlab运算?能写下代码么……

这个式子怎么用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)数据太大了,无法计算