Skip to content

pfunami/Mandelbrot-set

Repository files navigation

Mandelbrot - マンデルブロー集合

mandelbrot.cの#define
r0,i0 :描画中心
range :描画範囲(幅)
nmax :nの最大値
step :ステップ数
それぞれを調整することで、任意の位置でのマンデルブロー集合の座標情報を得られる。
出力先はdata.txtとすること。
最後にgnuplotを用いて
$gnuplot png.gnuplot
で図を得られる。

Mandelbrot.c's #define
r0,i0 : drawing center
range : Drawing range
nmax : Maximum value of n
step : number of steps
By adjusting these, coordinate information of Mandelbrot set at arbitrary position is obtained.
The output destination should be data.txt.
Finally, using gnuplot, you can obtain a figure with the next command.
$ gnuplot png.gnuplot
mandelbrot10 mandelbrot7 mandelbrot8