vb 编程 用pi /4 =1-1/3+1/5-1/7+...公式求pi的近似值,直到最后一项绝对值小于10-6为止Dim pi As Double, i As Integer, x As Long x = 1 i = 1 While 1 / x > 10 ^ -6 pi = pi + i * (1 / x)
来源:学生作业帮助网 编辑:作业帮 时间:2024/09/04 09:52:23
xTOPWnbb6JmƄ|'G{,`s
68~肎m[VxmӘ;;;z2I,UN+Sxa\&Q"+0߫CCC$z
v{&ȦZ?xeXI3MvJel@UGTJqxek>"HscL<g܌̇³>u[3)rDI=kyHh
q#SB51䒇=Ѡg[FQG1d,yгp{FdWyjEG$1Wy6t,L)E^=+]DofQ=h/u4 I#SnBU:B*}7(Fky@>@͡ o+Q풂Y:bW^q}V6c<[}n$RN,rUf]R~ _U-ÃWXy^zL`-p>x"]w2-nW\N3=XY똛g|/.p