VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   3195
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4680
   LinkTopic       =   "Form1"
   ScaleHeight     =   3195
   ScaleWidth      =   4680
   StartUpPosition =   3  '´°¿ÚÈ±Ê¡
   Begin VB.CommandButton Command1 
      Caption         =   "Command1"
      Height          =   615
      Left            =   1800
      TabIndex        =   0
      Top             =   2280
      Width           =   1215
   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()
  Print MySin(3.14), Sin(3.14)
End Sub

Public Function MySin(ByVal x!)
  Dim n%, s!, t!
  t = x
  s = t
  For n = 1 To 1000
    t = -1 * t * x * x / ((2 * n) * (2 * n + 1))
    s = s + t
    If Abs(t) < 0.00001 Then Exit For
  Next n
  MySin = s
End Function
