设计一程序用二分法解方程x*x+4x-4=0
问题描述:
设计一程序用二分法解方程x*x+4x-4=0
答
vb吧Private Sub Command1_Click()'定义一些变量 很简单 学过数学都懂.Dim a As Single,b As SingleDim c As Single,d As SingleDim ds As SingleDim x1,x2 As Stringa = Val(Text1.Text)b = Val(Text2.Text)c = Val...