Brownian tree: Difference between revisions

Content added Content deleted
(→‎{{header|Uiua}}: updated description and comments)
Line 5,448: Line 5,448:
# &ime "png"
# &ime "png"
# &fwa "BrownianTree.png"
# &fwa "BrownianTree.png"
</syntaxhighlight>

Or if you like your code terse :-)

<syntaxhighlight lang="Uiua">
S ← 80
⍜⊡(+1)↯2⌊÷2S↯S_S0
Rp ← (⊟⍥(⌊×⚂S)2)
Sd ← ⊟.⍢(Rp◌)(=1⊡) Rp
Nx ← ⟨Sd◌|∘⟩:⟜(/××⊃(≥0)(<S)⊢)⊟∵(-1+⌊×⚂3).⊢
⍜now⍥(⍜⊡(+1)◌°⊟⍢Nx(=0⊡⊢)Sd)500
</syntaxhighlight>
</syntaxhighlight>