Rem SETO Rem =====SANKAKU====== Private Sub Form_Load() Visible = True AutoRedraw = True Dim T As Single Dim X As Double Dim Y As Double Dim WX As Integer WX = 10 Scale (-WX, WX)-(WX, -WX) Line (-WX, 0)-(WX, 0): Line (0, WX)-(0, -WX) For T = -8 To 8 Step 0.01 X = FX(T) Y = FY(T) PSet (X, Y), QBColor(0) Next T End Sub Print "自分の名前" Form1.PrintForm Function FX(T As Single) As Double FX = T End Function Function FY(T As Single) As Double FY = Sin(T) End Function |
作業