[填空題] 本程序的功能是,利用下列公式求函數(shù)cos(x)的近似值,規(guī)定通項的絕對值≤10^-6時結(jié)束計算。請完善本程序.cos(x)=1-通用公
2021-07-20
[填空題] 本程序的功能是,利用下列公式求函數(shù)cos(x)的近似值,規(guī)定通項的絕對值≤10^-6時結(jié)束計算。請完善本程序.cos(x)=1-通用公式可知:a =Option ExplicitPrivate Sub Command1_Ciick()Dim S As Single,T As Single,K As Integer,x As SingleConsteps As Single=0.000001x=Val(Text1)()S=1T=1DoT= ()S=S+TK=K+1Loop While ()Text2=SEndSub
正確答案:k=1;T*(-1)*x*x/((2*k-1)*(2*k));Abs(t)>0.000001
詞條內(nèi)容僅供參考,如果您需要解決具體問題
(尤其在法律、醫(yī)學(xué)等領(lǐng)域),建議您咨詢相關(guān)領(lǐng)域?qū)I(yè)人士。