常用的数值算法的VB程序

源代码在线查看: rtbis.txt

软件大小: 1556 K
上传用户: zwaheron
关键词: 数值算法 VB程序
下载地址: 免注册下载 普通下载 VIP

相关代码

				Function RTBIS(X1, X2, XACC)
				    JMAX = 40
				    FMID = FUNC(X2)
				    F = FUNC(X1)
				    If F * FMID >= 0# Then
				        Print "Root must be bracketed for bisection."
				    End If
				    If F < 0# Then
				        RTBIS = X1
				        DX = X2 - X1
				    Else
				        RTBIS = X2
				        DX = X1 - X2
				    End If
				    For J = 1 To JMAX
				        DX = DX * 0.5
				        XMID = RTBIS + DX
				        FMID = FUNC(XMID)
				        If FMID 				        If Abs(DX) < XACC Or FMID = 0 Then Exit Function
				    Next J
				    Print "too many bisections"
				End Function			

相关资源