📄 form24.frm
字号:
VERSION 5.00
Object = "{A964BDA3-3E93-11CF-9A0F-9E6261DACD1C}#2.0#0"; "RESIZE32.OCX"
Begin VB.Form Form24
Caption = "三角分布最大反射系数模频率特性曲线"
ClientHeight = 4980
ClientLeft = 60
ClientTop = 345
ClientWidth = 7410
LinkTopic = "Form24"
MDIChild = -1 'True
ScaleHeight = 4980
ScaleWidth = 7410
Begin VB.PictureBox Picture1
AutoRedraw = -1 'True
BackColor = &H80000009&
DrawWidth = 2
Height = 4200
Left = 645
ScaleHeight = 276
ScaleMode = 3 'Pixel
ScaleWidth = 416
TabIndex = 0
Top = 375
Width = 6300
End
Begin ResizeLibCtl.ReSize ReSize1
Left = 6990
Top = 570
_Version = 131072
_ExtentX = 741
_ExtentY = 741
_StockProps = 0
Enabled = -1 'True
FormMinWidth = 0
FormMinHeight = 0
FormDesignHeight= 4980
FormDesignWidth = 7410
End
Begin VB.Label Label2
Caption = "2πλ/λg"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 315
Left = 6270
TabIndex = 14
Top = 4620
Width = 1275
End
Begin VB.Label Label3
Caption = "2|Γm|/Ln(Zl/Zin)"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 0
TabIndex = 13
Top = 60
Width = 2325
End
Begin VB.Label Label4
Caption = "1.0"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 345
Left = 120
TabIndex = 12
Top = 375
Width = 525
End
Begin VB.Label Label1
Caption = "0.0"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 345
Left = 120
TabIndex = 11
Top = 4230
Width = 525
End
Begin VB.Label Label5
Caption = "0.4"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 345
Left = 120
TabIndex = 10
Top = 2685
Width = 525
End
Begin VB.Label Label6
Caption = "0.8"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 345
Left = 120
TabIndex = 9
Top = 1140
Width = 525
End
Begin VB.Label Label7
Caption = "0.6"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 345
Left = 120
TabIndex = 8
Top = 1905
Width = 525
End
Begin VB.Label Label8
Caption = "0.2"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 345
Left = 120
TabIndex = 7
Top = 3450
Width = 525
End
Begin VB.Label Label9
Caption = "4π"
BeginProperty Font
Name = "宋体"
Size = 18
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 3600
TabIndex = 6
Top = 4560
Width = 525
End
Begin VB.Label Label10
Caption = "2π"
BeginProperty Font
Name = "宋体"
Size = 18
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 2025
TabIndex = 5
Top = 4560
Width = 525
End
Begin VB.Label Label11
Caption = "π"
BeginProperty Font
Name = "宋体"
Size = 18
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 1230
TabIndex = 4
Top = 4560
Width = 525
End
Begin VB.Label Label12
Caption = "3π"
BeginProperty Font
Name = "宋体"
Size = 18
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 2820
TabIndex = 3
Top = 4560
Width = 525
End
Begin VB.Label Label13
Caption = "5π"
BeginProperty Font
Name = "宋体"
Size = 18
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 4395
TabIndex = 2
Top = 4560
Width = 525
End
Begin VB.Label Label14
Caption = "6π"
BeginProperty Font
Name = "宋体"
Size = 18
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 5190
TabIndex = 1
Top = 4560
Width = 525
End
End
Attribute VB_Name = "Form24"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Function functioneval1(ByVal X As Double) As Double
If X = 0 Then
functioneval1 = 0
Else
functioneval1 = -(Sin(X / 2) / (X / 2)) ^ 2
End If
End Function
Private Sub Form_Load()
Dim pi As Double
pi = 4 * Atn(1)
Dim t, xmin, xmax, ymin, ymax, xpixels, functionval As Double
Dim i As Integer
ymin = 1E+101
ymax = -1E+101
xmin = 0
xmax = 8 * pi
Picture1.Cls
Picture1.ScaleMode = 3
xpixels = Picture1.ScaleWidth
For i = 1 To xpixels
t = xmin + (xmax - xmin) * i / xpixels
functionval = functioneval1(t)
If functionval > ymax Then ymax = functionval
If functionval < ymin Then ymin = functionval
Next
Picture1.Scale (xmin, ymin)-(xmax, ymax)
Picture1.FillColor = RGB(0, 0, 255)
Picture1.PSet (xmin, functioneval1(xmin))
For i = 0 To xpixels
t = xmin + (xmax - xmin) * i / xpixels
Picture1.Line -(t, functioneval1(t))
Next
Me.Left = 0
Me.Top = 0
Me.Width = 7530
Me.Height = 5385
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -