--- title: "Sine Wave" type: "article" slug: "sine-wave" url: "http://localhost/article/sine-wave/" markdown_url: "http://localhost/article/sine-wave.md" published_at: "2022-10-07T12:26:14+00:00" modified_at: "2024-05-26T13:31:32+00:00" featured_image: url: "http://localhost/wp-content/uploads/2022/04/20230809-041332.jpg" category: - name: "LISTing Newsletter" slug: "listing-newsletter" taxonomy: "category" url: "http://localhost/category/periodicals/listing-newsletter/" post_tag: - name: "TS 1000" slug: "ts1000" taxonomy: "post_tag" url: "http://localhost/tag/ts1000/" - name: "Type-in program" slug: "type-in-program" taxonomy: "post_tag" url: "http://localhost/tag/type-in-program/" model: - name: "Timex/Sinclair 1000" slug: "ts-1000" taxonomy: "model" url: "http://localhost/model/ts-1000/" indiv: - name: "Harvey Pulliam" slug: "harvey-pulliam" taxonomy: "indiv" url: "http://localhost/indiv/harvey-pulliam/" publication_r: id: 38992 title: "LISTing Newsletter" type: "periodical" url: "http://localhost/periodical/listing-newsletter/" authors: "Harvey Pulliam" issues_articles: - id: 40198 title: "LISTing Newsletter November 1989" type: "issue" url: "http://localhost/issue/listing-newsletter-november-1989/" pages: "9" pubdate: "November 1989" archive_link: false article_media: - id: 69519 title: "Sine Wave" type: "computer_media" url: "http://localhost/computer_media/sine-wave-2/" --- # Sine Wave ## Source Code: Sine Wave ``` 10 REM >> Sine Wave << by Ted Pozyski \* Sync, M/A 1984 20 PLOT 0,21: DRAW 63,0 30 PLOT 0,0: DRAW 0,43 40 FOR x=0 TO 62 50 PRINT AT 18,10;"Y= 20 SINE X" 60 PRINT AT 20,10;"X= ";x*360/62 70 LET y=20+20*SIN (x/31*PI) 80 PRINT AT 21,10;"Y= ";y-20 90 PLOT x,y 100 IF INKEY$=CHR$ 13 THEN GO TO 100 110 NEXT x ```