home *** CD-ROM | disk | FTP | other *** search
- INPUT "What do you want to call the output file? ",f$
-
- INPUT "Input the x-range (low,high)? ",xl,xh
- xl = INT(xl)
- xh = INT(xh)
-
- INPUT "Input the y-range (low,high)? ",yl,yh
- yl = INT(yl)
- yh = INT(yh)
-
- INPUT "How many x points? ",m
- INPUT "How many y points? ",n
-
- OPEN f$ FOR OUTPUT AS #1
-
- PRINT #1,m
- PRINT #1,n
- PRINT #1,xl
- PRINT #1,xh
- PRINT #1,yl
- PRINT #1,yh
-
- FOR i = 0 TO m-1
- FOR j = 0 TO n-1
- x = xl+(xh - xl)/m * i
- y = yl+(yh - yl)/n * j
- z = SIN(x*y) 'Replace this with your function
- PRINT #1,z
- NEXT j
- NEXT i
-
- CLOSE #1
-
-