Publication: Syntax
Pub Details: Syntax/Syntax ZX80 v3 n8 (Volume 3, Issue 8)
Date: August 1982
Pages: 21
Cardioid plots a heart-shaped curve with 1K RAM–an attempt to describe the speed-apparent wind diagram for a given sail at constant wind speed. The results can help predict optimum sailing conditions.
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
SYNTACTIC SUM: 12340, 8K
Media
Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.