How to resolve the algorithm Mandelbrot set step by step in the EchoLisp programming language

Published on 12 May 2024 09:40 PM

How to resolve the algorithm Mandelbrot set step by step in the EchoLisp programming language

Table of Contents

Problem Statement

Generate and draw the Mandelbrot set.

Note that there are many algorithms to draw Mandelbrot set and there are many functions which generate it .

Let's start with the solution:

Step by Step solution about How to resolve the algorithm Mandelbrot set step by step in the EchoLisp programming language

Source code in the echolisp programming language

(lib 'math) ;; fractal function
(lib 'plot)

;; (fractal z zc n) iterates z := z^2 + c, n times
;; 100 iterations
(define (mset z) (if (= Infinity (fractal 0 z 100)) Infinity z))

;; plot function argument inside square (-2 -2), (2,2)
(plot-z-arg mset -2 -2)

;; result here [http://www.echolalie.org/echolisp/help.html#fractal]


  

You may also check:How to resolve the algorithm String matching step by step in the Clojure programming language
You may also check:How to resolve the algorithm Function definition step by step in the Pop11 programming language
You may also check:How to resolve the algorithm Playing cards step by step in the Icon and Unicon programming language
You may also check:How to resolve the algorithm JSON step by step in the EGL programming language
You may also check:How to resolve the algorithm Maze solving step by step in the Clojure programming language