VERSION 5.00 Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX" Begin VB.Form Form1 Caption = "Стартовая форма" ClientHeight = 6060 ClientLeft = 165 ClientTop = 735 ClientWidth = 7860 LinkTopic = "Form1" ScaleHeight = 6060 ScaleWidth = 7860 StartUpPosition = 3 'Windows Default Begin VB.TextBox Text4 Height = 615 Left = 1200 TabIndex = 11 Top = 4680 Width = 1455 End Begin VB.Frame Frame1 Caption = "Frame1" Height = 4095 Left = 1560 TabIndex = 3 Top = 240 Width = 5535 Begin VB.TextBox Text3 Height = 615 Left = 2040 TabIndex = 9 Top = 2040 Width = 2055 End Begin VB.TextBox Text2 Height = 495 Left = 2040 TabIndex = 8 Top = 1200 Width = 2055 End Begin VB.TextBox Text1 Height = 495 Left = 2040 TabIndex = 7 Top = 360 Width = 2055 End Begin VB.CommandButton Command3 Caption = "Вычислить" Height = 495 Left = 1920 TabIndex = 10 Top = 3240 Width = 1215 End Begin VB.Label Label6 Caption = "Метод Симпсона" Height = 615 Left = 360 TabIndex = 6 Top = 2040 Width = 975 End Begin VB.Label Label4 Caption = "Метод трапеций" Height = 735 Left = 360 TabIndex = 5 Top = 1080 Width = 855 End Begin VB.Label Label5 Caption = "По формуле Ньютона-Лейбница" Height = 735 Left = 120 TabIndex = 4 Top = 360 Width = 1575 End End Begin VB.CommandButton Command4 Caption = "Command4" Height = 495 Left = 3120 TabIndex = 2 Top = 5040 Width = 975 End Begin VB.CommandButton Command2 Caption = "Command2" Height = 495 Left = 120 TabIndex = 1 Top = 1800 Width = 1215 End Begin MSComDlg.CommonDialog CommonDialog1 Left = 360 Top = 600 _ExtentX = 847 _ExtentY = 847 _Version = 393216 End Begin VB.CommandButton Command1 Caption = "OK" Height = 495 Left = 4920 TabIndex = 0 Top = 5040 Width = 1215 End Begin VB.Menu vvod Caption = "Ввод данных" End Begin VB.Menu graph Caption = "График" Begin VB.Menu visual Caption = "Визуализация" End Begin VB.Menu pogresh Caption = "Исследование погрешности" End End Begin VB.Menu Help Caption = "Справка" Begin VB.Menu niochem Caption = "О программе" End Begin VB.Menu chuvak Caption = "Об авторе" End End End Attribute VB_Name = "Form1" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = True Attribute VB_Exposed = False Private Sub chuvak_Click() Form6.Show End Sub Private Sub Command1_Click() Unload Me End Sub Private Sub Command2_Click() CommonDialog1.ShowSave 'file = "d:\primer.txt" 'Open file For Output As #1 'Print (CommonDialog1.FileName), Text1.Text 'Print (CommonDialog1.FileName), Text2.Text 'Print (CommonDialog1.FileName), Text3.Text Open (CommonDialog1.FileName) For Output As #1 Print #1, "Интеграл считается на отрезке:"; "["; a; ","; b; "]" Print #1, "Количество заданных разбиений:"; Text4.Text Print #1, "Ответ, полученный с помощью формулы Ньютона-Лейбница:" Print #1, Text1.Text Print #1, "Ответ, полученный с помощью метода трапеций:" Print #1, Text2.Text Print #1, "Ответ,полученный с помощью метода Симпсона:" Print #1, Text3.Text '"proverka" 'For i = 1 To 3 'Print #1, i 'Next Close #1 End Sub Private Sub Command4_Click() file = "d:\primer.txt" Open file For Output As #1 Print #1, "Ответ, полученный с помощью формулы Ньютона-Лейбница:" Print #1, Text1.Text Print #1, "Ответ, полученный с помощью метода трапеций:" Print #1, Text2.Text Print #1, "Ответ,полученный с помощью метода Симпсона:" Print #1, Text3.Text '"proverka" 'For i = 1 To 3 'Print #1, i 'Next Close #1 End Sub Private Sub Form_Load() CommonDialog1.Filter = "Text file|*.txt" End Sub Private Sub pogresh_Click() Form1.Hide Form7.Show End Sub Private Sub visual_Click() Form1.Hide Form2.Show End Sub Private Sub niochem_Click() frmAbout.Show End Sub Private Sub vvod_Click() Form1.Hide Form3.Show End Sub Private Sub Command3_Click() Text1.Text = nuton(b) - nuton(a) 'For n = 10 To 200 Step 10 t = Text4.Text Text2.Text = trap(a, b, t) Text3.Text = simpson(a, b, t) 'Next End Sub