TI-80 BASIC, 25 bytes - 25% = 18.75
PARAM
2π/ANS->TSTEP
"COS T->X1ᴛ
"SIN T->Y1ᴛ
DISPGRAPH
#TI-80 BASIC, 25 bytes - 25% = 18.75
PARAM
2π/ANS->TSTEP
"COS T->X1ᴛ
"SIN T->Y1ᴛ
DISPGRAPH
AssumesAssumes all settings are set to the default values.
Run the program like 5:PRGM_POLYGON
(for a pentagon)
It works by drawing a circle with a very low number of steps. For example, a pentagon would have steps of 2π/5 radians.
The window settings are good enough by default, and TMIN
and TMAX
are set to 0
and 2π
, so all we need to change is TSTEP
.