Constrained random points on a circle: Difference between revisions
Constrained random points on a circle (view source)
Revision as of 22:25, 13 February 2024
, 3 months ago→{{header|EasyLang}}
(added RPL) |
|||
(One intermediate revision by one other user not shown) | |||
Line 1,052:
=={{header|EasyLang}}==
[https://easylang.dev/show/#cod=
<syntaxhighlight>
while cnt < 100
x =
y =
r = sqrt (x * x + y * y)
if 10 <= r and r <= 15
Line 3,656 ⟶ 3,657:
=={{header|RPL}}==
{{works with|HP|48G}}
[[File:Constrained|thumb|alt=Screenshot of a HP-48G emulator, displaying constrained random points on a circle|HP-48G emulator screenshot]]▼
« ERASE -15 15 DUP2 XRNG YRNG <span style="color:grey">@ set graphics boundaries</span>
DEG -19 SF 0 <span style="color:grey">@ set degrees mode, polar vector mode, count = 0</span>
Line 3,668:
-19 CF
» '<span style="color:blue">TASK</span>' STO
▲[[File:Constrained
The circle is actually an ellipse because RPL display screens are not squared.
=={{header|Ruby}}==
|