python求解二元一次方程组代码_如何编程求二元一次方程组的解
双击commmand1对象进入该对象的代码区域,选择对象为commmand1,过程选择click,然后输入代码:Dim a As SingleDim b As SingleDim c As SingleDim d As SingleDim e As SingleDim f As SingleIf (Text1.Text > 0) And (Text2.Text > 0) Thena =
双击commmand1对象进入该对象的代码区域,选择对象为commmand1,过程选择click,然后输入代码:
Dim a As Single
Dim b As Single
Dim c As Single
Dim d As Single
Dim e As Single
Dim f As Single
If (Text1.Text > 0) And (Text2.Text > 0) Then
a = Text2.Text * Text4.Text
b = Text5.Text * Text1.Text
c = a - b
d = Text3.Text * Text4.Text - Text6.Text * Text1.Text
e = d / c
f = (Text3.Text - Text2.Text * e) / Text1.Text
Text7.Text = f
Text8.Text = e
End If
If ((Text1.Text > 0) And (Text2.Text < 0)) Or ((Text1.Text < 0) And (Text2.Text > 0)) Then
a = Text2.Text * Text4.Text
b = Text5.Text * Text1.Text
c = a + b
d = Text3.Text * Text4.Text - Text6.Text * Text1.Text
e = d / c
f = (Text3.Text - Text2.Text * e) / Text1.Text
Text7.Text = f
Text8.Text = e
End If
更多推荐



所有评论(0)