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

📄 form23.frm

📁 某大学开发的一个用于对微波传输线状态进行模拟的软件
💻 FRM
字号:
VERSION 5.00
Object = "{A964BDA3-3E93-11CF-9A0F-9E6261DACD1C}#2.0#0"; "RESIZE32.OCX"
Begin VB.Form Form23 
   Caption         =   "指数分布最大反射系数模频率特性曲线"
   ClientHeight    =   4980
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   7410
   LinkTopic       =   "Form23"
   MDIChild        =   -1  'True
   ScaleHeight     =   4980
   ScaleWidth      =   7410
   Begin ResizeLibCtl.ReSize ReSize1 
      Left            =   6990
      Top             =   600
      _Version        =   131072
      _ExtentX        =   741
      _ExtentY        =   741
      _StockProps     =   0
      Enabled         =   -1  'True
      FormMinWidth    =   0
      FormMinHeight   =   0
      FormDesignHeight=   4980
      FormDesignWidth =   7410
   End
   Begin VB.PictureBox Picture1 
      AutoRedraw      =   -1  'True
      BackColor       =   &H80000009&
      DrawWidth       =   2
      Height          =   4200
      Left            =   650
      ScaleHeight     =   276
      ScaleMode       =   3  'Pixel
      ScaleWidth      =   416
      TabIndex        =   0
      Top             =   400
      Width           =   6300
   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        =   14
      Top             =   4590
      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        =   13
      Top             =   4590
      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        =   12
      Top             =   4590
      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        =   11
      Top             =   4590
      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        =   10
      Top             =   4590
      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        =   9
      Top             =   4590
      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        =   8
      Top             =   3484
      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        =   7
      Top             =   1942
      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        =   6
      Top             =   1171
      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        =   5
      Top             =   2713
      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        =   4
      Top             =   4255
      Width           =   525
   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        =   3
      Top             =   400
      Width           =   525
   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        =   2
      Top             =   90
      Width           =   2325
   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        =   1
      Top             =   4650
      Width           =   1275
   End
End
Attribute VB_Name = "Form23"
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 = -Abs(Sin(X) / X)
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
Form23.Picture1.Cls
Form23.Picture1.ScaleMode = 3
xpixels = Form23.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
Form23.Picture1.Scale (xmin, ymin)-(xmax, ymax)
Form23.Picture1.FillColor = RGB(0, 0, 255)
Form23.Picture1.PSet (xmin, functioneval1(xmin))
For i = 0 To xpixels
t = xmin + (xmax - xmin) * i / xpixels
Form23.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 + -