VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   3975
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   5205
   LinkTopic       =   "Form1"
   ScaleHeight     =   3975
   ScaleWidth      =   5205
   StartUpPosition =   3  'Windows Default
   Begin VB.CommandButton Command2 
      Caption         =   "Очистка"
      Height          =   375
      Left            =   480
      TabIndex        =   2
      Top             =   3600
      Width           =   975
   End
   Begin VB.CommandButton Command1 
      Caption         =   "График"
      Height          =   495
      Left            =   2040
      TabIndex        =   1
      Top             =   3480
      Width           =   855
   End
   Begin VB.PictureBox PicGraph 
      BackColor       =   &H00FFFFFF&
      Height          =   3135
      Left            =   120
      ScaleHeight     =   3075
      ScaleWidth      =   4875
      TabIndex        =   0
      Top             =   120
      Width           =   4935
   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()
PicGraph.Scale (-10, 2)-(10, -2)
For I = -5 To 5
PicGraph.Line (I, 2)-(I, -2), vbGreen
Next I
For I = -5 To 5 Step 0.1
PicGraph.Line (10, I)-(-10, I), vbGreen
Next I
For X = -10 To 10 Step 0.01
PicGraph.PSet (X, Sin(X))
Next X
For X = -10 To 10 Step 0.01
PicGraph.PSet (X, X ^ 3), vbRed
Next X
PicGraph.Line (-10, 0)-(10, 0)
For I = -10 To 10
PicGraph.PSet (I, 0)
PicGraph.Print I
Next I
PicGraph.Line (0, 2)-(0, -2)
For I = -2 To 2
PicGraph.PSet (0, I)
PicGraph.Print I
Next I






End Sub

Private Sub Command2_Click()
PicGraph.Cls

End Sub
