⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 form1.frm

📁 计算方法的VB程序
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "割弦法求非线性方程之解"
   ClientHeight    =   3195
   ClientLeft      =   3900
   ClientTop       =   3090
   ClientWidth     =   4680
   LinkTopic       =   "Form1"
   ScaleHeight     =   3195
   ScaleWidth      =   4680
   Begin VB.TextBox Text2 
      Height          =   615
      Left            =   4080
      TabIndex        =   5
      Top             =   360
      Width           =   495
   End
   Begin VB.CommandButton Command3 
      Caption         =   "&About"
      Height          =   615
      Left            =   3240
      Style           =   1  'Graphical
      TabIndex        =   4
      Top             =   2520
      Width           =   1335
   End
   Begin VB.CommandButton Command2 
      Caption         =   "&End"
      Height          =   615
      Left            =   3240
      Style           =   1  'Graphical
      TabIndex        =   3
      Top             =   1800
      Width           =   1335
   End
   Begin VB.CommandButton Command1 
      Caption         =   "O&k"
      Height          =   615
      Left            =   3240
      Style           =   1  'Graphical
      TabIndex        =   2
      Top             =   1080
      Width           =   1335
   End
   Begin VB.TextBox Text1 
      Height          =   615
      Left            =   3240
      TabIndex        =   1
      Top             =   360
      Width           =   495
   End
   Begin VB.Label Label3 
      Caption         =   "  x1"
      Height          =   375
      Left            =   4080
      TabIndex        =   7
      Top             =   120
      Width           =   495
   End
   Begin VB.Label Label2 
      Caption         =   "  x0"
      Height          =   375
      Left            =   3240
      TabIndex        =   6
      Top             =   120
      Width           =   495
   End
   Begin VB.Label Label1 
      Caption         =   $"FORM1.frx":0000
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   14.25
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   3255
      Left            =   0
      TabIndex        =   0
      Top             =   0
      Width           =   3135
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim t1, t2 As Date
Dim x, x0, x1 As Double
t1 = Time
k = 2
x0 = CInt(Text1.Text)
x1 = CInt(Text2.Text)
s(0) = x0
s(1) = x1
Do
s(k) = s(k - 1) - f(s(k - 1)) * (s(k - 1) - s(k - 2)) / (f(s(k - 1)) - f(s(k - 2)))
k = k + 1
Loop While (Abs(s(k - 1) - s(k - 2)) >= Pre And k <= Max)
Form1.Hide
Form2.Show
End Sub

Private Sub Command2_Click()
End
End Sub

Private Sub Command3_Click()
temp = MsgBox("理学院一队:王元", 64, "关于:作者")
End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -