ohohyeah
ohohyeah
关注数: 0
粉丝数: 0
发帖数: 7
关注贴吧数: 0
无奈了,各位帮帮我,我试了半天老是出错 (以这个为准) 上面的写得不够清楚,也有个地方错了,以下为准 无标题文档 table{line-height:30px; }td{font-size:12px;} Function calculate()Dim nn,tem1,ResJC,temp2,inn = 0 '分母tem1 = 1 '结果之和ResJC =1 '分母阶乘temp2=1 '分子除以分母 While tem1 >0.00001 nn = nn + 1for i=1 to nn '求分母的阶乘ResJC = ResJC *inexttemp2 = temp2 / ResJC tem1=tem1+ temp2 WendEnd Function 点击下方按钮查看自然数e(精确到10的负4次方)的值
无奈了,各位帮帮我,我试了半天老是出错 以下代码老是在状态栏中提示脚本出错,我调了半天都不成,各位帮我看看。谢谢 无标题文档 table{line-height:30px; }td{font-size:12px;} Function calculate()Dim nn,tem1,ResSum,temp2,inn = 0tem1 = 1ResSum =1temp2=1 While tem1 >0.00001 nn = nn + 1for i=1 to nn '求分母的阶乘ResSum = ResSum *inexttemp2 = temp2 / ResSum tem1=tem1+ t WendEnd Function 点击下方按钮查看自然数e(精确到10的负4次方)的值
1
下一页