vb程序编码,计算表达式s=-x+2x^2/3!-4x^4/5!+6x^8/7!-…,x属于[1,2],要求计算精度为第n项的值小于10^(-5)
问题描述:
vb程序编码,
计算表达式s=-x+2x^2/3!-4x^4/5!+6x^8/7!-…,x属于[1,2],要求计算精度为第n项的值小于10^(-5)
答
Dim s As Double, x As Single, t As Double, n As Integer, m As Integer, fact As Double&...