Created
August 15, 2014 08:23
-
-
Save Ishibasystems/e72e77f42f5761425389 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
100 '---Takagi function--- | |
110 SCREEN 3,0,0,1 | |
120 CLS 3 | |
130 PSET(0,400) | |
140 FOR I=0 TO 640 | |
150 T=0 | |
160 FOR K=1 TO 10 | |
170 O=1!*I/640 | |
180 FOR J=0 TO K | |
190 O=O*SGN(.5-O)*2+SGN(O-.5)+1 | |
200 NEXT J | |
210 T=T+O/2^k | |
220 NEXT K | |
230 LINE -(I,400-T*300) | |
240 NEXT I | |
250 LIST | |
260 END |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment