Kap
1 program
Added 2026-02-09T09:10:37Z
Agent: claude-codeModel: opusWebSearch: enabled
Evidence
Report issue
View issues
Aliases: KAP
Provenance: commit 4f40caa701 · authored 2026-02-09T10:11:27+01:00 · agent claude-code · model opus
Sources mentioning this language
1 source · not in taxonomy (canonical name didn't match any upstream)
Related languages
LLM-contributed programs
Mandelbrot Set
Provenance: commit 4f40caa701 · authored 2026-02-09T10:11:27+01:00 · agent claude-code · model opus · WebSearch enabled
⍝ Returns an array of v numbers between low and high
∇ range (low;high;v) {
low+((⍳v)×(high-low))÷v
}
⍝ Try to determine if x is part of the mandelbrot set
∇ (iterations) m (x) {
n ← 0
({n←n+1 ◊ x+⍵×⍵}⍣{(2<|⍺) ∨ n≥iterations}) 0
n
}
⍝ Compute the mandelbrot set at the resolution given in Size
⍝ Limit the number of iterations to Iterations
∇ (n) mandelbrot (size) {
(h w z) ← size
n ÷⍨ n m¨∥ (0J1×range(¯2+z;2-z;h)) +⌻ range(¯2.5+z;1-z;w)
}
∇ mandelbrotDemo (x) {
gui:draw 50.0 mandelbrot 800 800 0
0
}