# Mandelbrot macro

**URL:** <https://root-forum.cern.ch/t/mandelbrot-macro/4520>\
**Category:** Evolution Proposals, Apps & Ideas\
**Created:** [March 13, 2007, 11:45am UTC](https://root-forum.cern.ch/t/mandelbrot-macro/4520 "2007-03-13T11:45:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![luigi](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/l/73ab20/32.png) [@luigi](https://root-forum.cern.ch/u/luigi)\
**Post date:** [March 13, 2007, 11:45am UTC](https://root-forum.cern.ch/t/mandelbrot-macro/4520/1 "2007-03-13T11:45:21Z")

</div>

Dear all,  
while preparing a small ROOT course, I have written the following macro, that draws the fractal Mandelbrot set, and allows for zoom/unzoom operations.  
Runs with `root mandelbrot.C+`  
I attach the macro and a screenhsot, just in case someone is interested (maybe a new ROOT tutorial on TExec/TComplex ? ![8)](https://root-forum.cern.ch/uploads/default/original/1X/fe5f42ae79e389360ae9d969db4dcc4bca03d384.gif "Cool") )

Bye  
Luigi

 ![](https://root-forum.cern.ch/uploads/default/original/2X/8/81ebfbdec8898c598bfd9cda014bd4d9eab227c6.gif)  
  
[mandelbrot.C](https://root-forum.cern.ch/uploads/default/original/2X/8/8a1d3d612e8ad03cebed5a7931fcee757e2a8dfa.C) (3.24 KB)

---

<div class="post-metadata">

**Author:** ![brun](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/b/b9e5f3/32.png) [@brun](https://root-forum.cern.ch/u/brun)\
**Post date:** [March 13, 2007, 1:05pm UTC](https://root-forum.cern.ch/t/mandelbrot-macro/4520/2 "2007-03-13T13:05:25Z")

</div>

Hi Luigi,

Thanks for this very nice contribution illustrating the TExec, TComplex, etc classes.  
I have added it as a tutorial in tutorials/graphics/mandelbrot.C

Rene
