📄 相对误差计算.frm
字号:
End
Begin VB.TextBox Text3
BeginProperty DataFormat
Type = 1
Format = "0.000000000000000000000000000000%"
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 5
EndProperty
Height = 495
Index = 4
Left = 240
TabIndex = 20
Text = "第五组误差"
Top = 2640
Width = 1095
End
Begin VB.TextBox Text3
BeginProperty DataFormat
Type = 1
Format = "0.000000000000000000000000000000%"
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 5
EndProperty
Height = 495
Index = 3
Left = 240
TabIndex = 19
Text = "第四组误差"
Top = 2040
Width = 1095
End
Begin VB.TextBox Text3
BeginProperty DataFormat
Type = 1
Format = "0.000000000000000000000000000000%"
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 5
EndProperty
Height = 495
Index = 2
Left = 240
TabIndex = 18
Text = "第三组误差"
Top = 1440
Width = 1095
End
Begin VB.TextBox Text3
BeginProperty DataFormat
Type = 1
Format = "0.000000000000000000000000000000%"
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 5
EndProperty
Height = 495
Index = 1
Left = 240
TabIndex = 17
Text = "第二组误差"
Top = 840
Width = 1095
End
Begin VB.TextBox Text3
BeginProperty DataFormat
Type = 1
Format = "0.000000000000000000000000000000%"
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 5
EndProperty
Height = 495
Index = 0
Left = 240
TabIndex = 9
Text = "第一组误差"
Top = 240
Width = 1095
End
End
Begin VB.Frame Frame1
Caption = "标准值"
Height = 6255
Left = 120
TabIndex = 1
Top = 120
Width = 1695
Begin VB.TextBox Text1
BeginProperty DataFormat
Type = 1
Format = "#,##0.000000000000000000000000000000"
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 1
EndProperty
Height = 495
Index = 9
Left = 240
TabIndex = 27
Top = 5640
Width = 1215
End
Begin VB.TextBox Text1
BeginProperty DataFormat
Type = 1
Format = "#,##0.000000000000000000000000000000"
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 1
EndProperty
Height = 495
Index = 8
Left = 240
TabIndex = 26
Top = 5040
Width = 1215
End
Begin VB.TextBox Text1
BeginProperty DataFormat
Type = 1
Format = "#,##0.000000000000000000000000000000"
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 1
EndProperty
Height = 495
Index = 7
Left = 240
TabIndex = 25
Top = 4440
Width = 1215
End
Begin VB.TextBox Text1
BeginProperty DataFormat
Type = 1
Format = "#,##0.000000000000000000000000000000"
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 1
EndProperty
Height = 495
Index = 1
Left = 240
TabIndex = 24
Top = 840
Width = 1215
End
Begin VB.TextBox Text1
BeginProperty DataFormat
Type = 1
Format = "#,##0.000000000000000000000000000000"
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 1
EndProperty
Height = 495
Index = 6
Left = 240
TabIndex = 7
Top = 3840
Width = 1215
End
Begin VB.TextBox Text1
BeginProperty DataFormat
Type = 1
Format = "#,##0.000000000000000000000000000000"
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 1
EndProperty
Height = 495
Index = 5
Left = 240
TabIndex = 6
Top = 3240
Width = 1215
End
Begin VB.TextBox Text1
BeginProperty DataFormat
Type = 1
Format = "#,##0.000000000000000000000000000000"
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 1
EndProperty
Height = 495
Index = 4
Left = 240
TabIndex = 5
Top = 2640
Width = 1215
End
Begin VB.TextBox Text1
BeginProperty DataFormat
Type = 1
Format = "#,##0.000000000000000000000000000000"
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 1
EndProperty
Height = 495
Index = 3
Left = 240
TabIndex = 4
Top = 2040
Width = 1215
End
Begin VB.TextBox Text1
BeginProperty DataFormat
Type = 1
Format = "#,##0.000000000000000000000000000000"
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 1
EndProperty
Height = 495
Index = 2
Left = 240
TabIndex = 3
Top = 1440
Width = 1215
End
Begin VB.TextBox Text1
BeginProperty DataFormat
Type = 1
Format = "#,##0.000000000000000000000000000000"
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 1
EndProperty
Height = 495
Index = 0
Left = 240
TabIndex = 2
Top = 240
Width = 1215
End
End
Begin VB.CommandButton Command1
Caption = "计算"
Height = 615
Left = 3840
TabIndex = 0
Top = 2520
Width = 735
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()
For i = 0 To 9 ' 李庆扬等:数值分析(第四版)(清华大学出版社),2001
If Text1(i) <> "" And Text2(i) <> "" Then Text3(i) = Format((Val(Text1(i)) - Val(Text2(i))) / Val(Text2(i)) * 100, "#.###0") & "%"
Next i
End Sub
Private Sub Command2_Click()
For i = 0 To 9
Text1(i) = "": Text2(i) = "": Text3(i) = "第" & i & "组相对误差"
Next i
End Sub
Private Sub Command3_Click()
End
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -