Archimedean spiral: Difference between revisions
add BQN
m (→{{header|Phix}}: minor tidy) |
(add BQN) |
||
Line 589:
{{out}}
Screenshot [http://edmundgriffiths.com/zx81archspiral.jpg here].
=={{header|BQN}}==
The BQN online REPL supports some basic plotting functionality through <code>•Plot</code>. This is used to create a spiral plotting function:
<lang bqn>{(•math.Sin •Plot○(⊢×↕∘≠) •math.Cos) -(2×π) × 𝕩⥊(↕÷-⟜1)100}</lang>
When called with argument 200, it is similar to the given example diagram.
[https://mlochbaum.github.io/BQN/try.html#code=eyjigKJtYXRoLlNpbiDigKJQbG904peLKOKKosOX4oaV4oiY4omgKSDigKJtYXRoLkNvcykgLSgyw5fPgCkgw5cg8J2VqeKliijihpXDty3in5wxKTEwMH0yMDA= Try it out!]
=={{header|C}}==
|