VERSION 5.00 Begin VB.Form Form1 Caption = "Нахождение значений" ClientHeight = 1500 ClientLeft = 3630 ClientTop = 4005 ClientWidth = 4785 Icon = "Znachenie.frx":0000 LinkTopic = "Form1" ScaleHeight = 1500 ScaleWidth = 4785 Begin VB.CommandButton Command2 BackColor = &H008080FF& Cancel = -1 'True Caption = "В&ыход" BeginProperty Font Name = "MS Sans Serif" Size = 8.25 Charset = 204 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 375 Left = 120 MaskColor = &H80000012& Style = 1 'Graphical TabIndex = 6 ToolTipText = "Для завершения работы программы нажмите кнопку ""Выход""" Top = 1080 Width = 1815 End Begin VB.PictureBox Picture1 ForeColor = &H000000FF& Height = 615 Left = 2040 ScaleHeight = 555 ScaleWidth = 2595 TabIndex = 4 ToolTipText = "Результат" Top = 840 Width = 2655 End Begin VB.TextBox Text1 Height = 285 Left = 3240 TabIndex = 1 Text = "5" ToolTipText = "Введите значение переменной X" Top = 480 Width = 1455 End Begin VB.CommandButton Command1 BackColor = &H00FFFF00& Caption = "Выч&ислить" Default = -1 'True BeginProperty Font Name = "MS Sans Serif" Size = 8.25 Charset = 204 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 375 Left = 120 MaskColor = &H80000012& Style = 1 'Graphical TabIndex = 0 ToolTipText = "Для получения результата нажмите кнопку ""Вычислить""" Top = 720 Width = 1815 End Begin VB.Line Line1 X1 = 0 X2 = 4800 Y1 = 360 Y2 = 360 End Begin VB.Label Label2 Caption = "-2" ForeColor = &H0000C000& Height = 255 Left = 3960 TabIndex = 5 Top = 0 Width = 255 End Begin VB.Label Label1 Caption = "Вычислить значение выражения x и tgx." BeginProperty Font Name = "MS Sans Serif" Size = 12 Charset = 204 Weight = 400 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty ForeColor = &H0000C000& Height = 375 Left = 0 TabIndex = 3 ToolTipText = "Задание" Top = 0 Width = 4815 End Begin VB.Label Label4 Caption = "Введите значение переменной Х:" BeginProperty Font Name = "MS Sans Serif" Size = 8.25 Charset = 204 Weight = 700 Underline = 0 'False Italic = 0 'False Strikethrough = 0 'False EndProperty Height = 255 Left = 120 TabIndex = 2 ToolTipText = "Условие" Top = 480 Width = 3015 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() Picture1.Cls x = Val(Text1) Picture1.Print 1 / x ^ 2 Picture1.Print Tan(x) End Sub Private Sub Command2_Click() End End Sub