VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   585
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   5490
   LinkTopic       =   "Form1"
   ScaleHeight     =   585
   ScaleWidth      =   5490
   StartUpPosition =   3  '窗口缺省
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Click()
    Print "Sin调用结果:"; Sin(3.14 / 4)
    Print "MySin调用结果:"; MySin(3.14 / 4)
End Sub
Function MySin(x!) As Single
    Dim i%, t!, s!
    t = x
    s = t
    For i = 1 To 1000 Step 2
     t = -1 * t * x * x / ((i + 1) * (i + 2))
     s = s + t
     If Abs(t < 0.00001) Then Exit For
    Next i
    MySin = s
End Function
