--- title: "Cardioid Plot" id: 76360 type: "computer_media" slug: "cardioid-plot" url: "http://localhost/computer_media/cardioid-plot/" markdown_url: "http://localhost/computer_media/cardioid-plot.md" published_at: "2026-11-11T08:03:06+00:00" modified_at: "2026-11-11T08:03:06+00:00" author: "David Anderson" featured_image: url: "http://localhost/wp-content/uploads/2026/11/cardioid-plot-1.png" excerpt: "Plot a heart-shaped cardioid on the ZX81 in 1K, a curve the author used to describe a sail's speed in a constant wind." post_tag: - name: "Downloadable" slug: "downloadable" taxonomy: "post_tag" url: "http://localhost/tag/downloadable/" - name: "TS 1000" slug: "ts1000" taxonomy: "post_tag" url: "http://localhost/tag/ts1000/" - name: "ZX81" slug: "zx81" taxonomy: "post_tag" url: "http://localhost/tag/zx81/" model: - name: "Sinclair ZX81" slug: "zx81" taxonomy: "model" url: "http://localhost/model/zx81/" - name: "Timex/Sinclair 1000" slug: "ts-1000" taxonomy: "model" url: "http://localhost/model/ts-1000/" indiv: - name: "Frederic Bogar" slug: "bogar-frederic" taxonomy: "indiv" url: "http://localhost/indiv/bogar-frederic/" genre: - name: "Graphics" slug: "graphics" taxonomy: "genre" url: "http://localhost/type/graphics/" media_type: "Program" programmers: - name: "Frederic Bogar" slug: "bogar-frederic" taxonomy: "indiv" url: "http://localhost/indiv/bogar-frederic/" download_url: "https://archive.org/download/timex-sinclair-software-archive/Cardioid%20Plot%20%281982%29%28Bogar%2C%20Frederic%29%28TS1000%29%28US%29%28Program%29.zip" mediadate: "1982" images: - url: "http://localhost/wp-content/uploads/2026/11/cardioid-plot-1.png" - url: "http://localhost/wp-content/uploads/2026/11/cardioid-plot-2.png" article_media: - id: 19303 title: "Cardioid Plot" type: "article" url: "http://localhost/article/cardioid-plot/" media_type_tags: "Graphics" license: false --- # Cardioid Plot Plots a cardioid, a heart-shaped curve, with PLOT on the 8K ROM in 1K. The program steps an angle from PI to 0 and plots each point and its mirror image, so the curve builds up from both sides at once. The author drew it as an attempt to describe the speed and apparent-wind diagram of a sail at a constant wind speed, to help predict the best sailing conditions. Published in Syntax August 1982 ([Cardioid Plot](https://timexsinclair.com/article/cardioid-plot/)). ## Source Code ``` 10 FOR T=PI TO 0 STEP -.05*PI 50 LET A=(1+COS T)*COS T 60 LET B=(15*SQR ((1+COS T)**2-ABS A**2)) 70 LET X=32+B 80 LET Y=30-15*A 90 PLOT X,Y 100 LET X=32-B 110 PLOT X,Y 120 NEXT T 130 STOP ```