Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
14
Task/Mandelbrot-set/Sidef/mandelbrot-set.sidef
Normal file
14
Task/Mandelbrot-set/Sidef/mandelbrot-set.sidef
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
func mandelbrot(z) {
|
||||
var c = z
|
||||
{ z = (z*z + c)
|
||||
z.abs > 2 && return true
|
||||
} * 20
|
||||
return false
|
||||
}
|
||||
|
||||
for y range(1, -1, -0.05) {
|
||||
for x in range(-2, 0.5, 0.0315) {
|
||||
print(mandelbrot(x + y.i) ? ' ' : '#')
|
||||
}
|
||||
print "\n"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue