File:Part of parameter plane with fragment of Mandelbrot set , center = -1.8605739600158748e+00 + -9.3437424499999996e-07.png

From Wikibooks, open books for an open world
Jump to navigation Jump to search

Original file(1,280 × 720 pixels, file size: 543 KB, MIME type: image/png)

Summary

Description
English: Part of parameter plane with fragment of Mandelbrot set , center = -1.8605739600158748e+00 + -9.3437424499999996e-07
Date
Source made wit Mightymandel - GPU based program by Claude Heiland-Allen[1]
Author Adam majewski
Other versions xplode.gif

Licensing

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons

attribution share alike

This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must attribute the work in the manner specified by the author or licensor (but not in any way that suggests that they endorse you or your use of the work).
  • share alike – If you alter, transform, or build upon this work, you may distribute the resulting work only under the same or similar license to this one.

Summary

fractint

One can do similar image with Fractint :

  • Start FRACTINT, go to main menu.
  • Press '@' : Run saved command set
  • Press 'F6': To select the PAR File : filament.par
  • Then select parameter set 'Fil0' : press enter.

It is a section () from main fractint.par file

Filament           { ; A Mandelbrot                         Ian Adam
 reset type=mandel
 corners=-1.86057396488642/-1.86057395514533/-0.00000093796272/-0.00000093078\
 577 float=y maxiter=1500 inside=0
 colors=000512<3>E44G55I66K77M88<13>mCBoCBqBA<2>v97w97y77<2>z11z00z00<9>z00z0\
 0x02<28>20w00y00z<10>00z<5>``zffzllzsszzzz00z<6>00z<5>``zffzllzsszzzz00z<6>0\
 0z<5>``zffzllzsszzzz00K00M00O00Q11S22U44W66Y98_<2>LKePOgTRiXUk`Yldam00z<8>00\
 e00c00b<14>00O00O00N00N00M<21>00B00B009<17>000000000000000<24>000301
 }

or :

 Filament           { ; A Mandelbrot                         Ian Adam
 reset=2004 type=mandel
 center-mag=-1.86057396001587505/-0.00000093437424500/2.786699e+08
 params=0/0 float=y maxiter=1500 inside=0
 colors=000512<4>G55I66K77<2>Q98S99U99W99YA9<3>eBAgBAiBBkCBmCB<3>tA8v97w9\
 7y77<2>z11z00z00<4>z00z00z00<2>z00z00x02<23>C0mA0o80q<2>20w00y00z<4>00z0\
 0z00z<3>00z<3>PPzVVz``zffz<2>zzz00z<4>00z00z00z<3>PPzVVz``zffz<2>zzz00z<\
 4>00z00z00z<3>PPzVVz``zffz<2>zzz00K00M00O00Q11S22U44W66Y98_<3>POgTRiXUk`\
 Yldam00z<3>00q00n00l<2>00e00c00b<10>00S00R00Q<22>00E00D00D<2>00B00B009<1\
 3>002002001<24>000000000<3>000301
 }

Mightymandel

Save it as a filament par, convert to ppar file :

./extra/split2ppar.sh /examples/par/filament.par

then run :

./src/mightymandel ./examples/ppar/filament.ppar

Check comment inside file :

identify -format "%c" 1.ppm
mightymandel -1.8605739600158748e+00 + -9.3437424499999996e-07 i @ 3.5884749956982262e-09

convert to png using a script in extra that preserves metadata when converting to PNG :

 ./extra/ppm2png.sh 1.ppm

book program

Parameter file for gui version[2] ( for example filament.txt) :

view 154 -1.86057396001587505e+0 -0.00000093437424500e+0 3.588475109798367e-9

output :

type: double
RENDER
real: -1.86057396001587504999999999999999999999999999998e+00
imag: -9.34374245000000000000000000000000000000000000017e-07
radius: 3.5884751097983668e-09
bits: 35
type: mpfr

or sh file for non-gui version :

#!/bin/bash

# Radius is defined as "the difference in imaginary coordinate between the center and the top of the axis-aligned view rectangle".
# https://en.wikibooks.org/wiki/Fractals/Computer_graphic_techniques/2D/plane
#
# in examples directory :  chmod +x standardview2.sh
# then go to the parent directory : cd ..
# run run these example from the parent directory :
# ./examples/ian.sh
#
# result : 
# ./render using double
# rgba 1.000000 1.000000 1.000000 1.000000
# Image  standard.png  is saved
# info text file  .txt is saved

# from file :  / code/bin/mandelbrot_render.c
#      int width = 1280;
#   int height = 720; 

# standard view of parameter plane : center_re, center_im, radius
# plane description : view = center and radius 
center_re="-1.86057396001587505"
center_im="-0.00000093437424500"
center="$center_re $center_im"
radius="3.5884751097983668e-09" #$(echo 1.0/$zoom | bc -l) # real radius
view="$center $radius"

# inbits are proportional to zoom 
# inbits=$((54+$((4*$zoom))))

# image file names 
filename="ian" # filename stem : stem="standard"
ppmfilename=$filename".ppm"
pngfilename=$filename".png"

# escape radius
er="512"

# image size in pixels
w="800"
h="600"
# maximum iterations
n="1500"
# interior rendering
i="1"

# Heredoc
# ./render $view && ./colour "$stem" > "$stem.ppm"
#./render $view "$er" "$filename" "$w" "$h" "$n" "$i"  && ./colour "$filename" > "$ppmfilename" && ./annotate "$ppmfilename"  $pngfilename <<EOF
#rgba 1 1 1 1
#EOF

echo "Image " $pngfilename " is saved"

# info text file 
textfilename=$filename".txt"

ratio=$(echo $w/$h | bc -l)
# http://stackoverflow.com/questions/12882611/how-to-get-bc-to-handle-numbers-in-scientific-aka-exponential-notation
# bash do not use floating point 
rim=`echo ${radius} | sed -e 's/[eE]+*/\\*10\\^/'` # conver e to 10
rre=$(echo $ratio*$rim | bc -l) # real radius
cu=$(echo $center_im+$rim | bc -l)
cd=$(echo $center_im-$rim | bc -l)
cl=$(echo $center_re+$rre | bc -l)
cr=$(echo $center_re-$rre | bc -l)
rim="("$rim")" # add () because precedence of operators 
zoom=$(echo 1/$rim | bc -l) # zoom = 1/radius
z=$(echo "$zoom" | sed 's/e/*10^/g;s/ /*/' | bc)
echo "part of parameter complex plane " > $textfilename
echo "center of image c = " $center >> $textfilename
echo "radius = (image height/2) = " $rim >> $textfilename
echo "radius = (image height/2) = " $radius >> $textfilename
echo "up corner = center_im+radius = cu =" $cu >> $textfilename
echo "down corner = center_im-radius = cd =" $cd >> $textfilename
echo "left corner = center_re+ratio*radius = cl =" $cl >> $textfilename
echo "right corner = center_im-ratio*radius = cr =" $cr >> $textfilename
echo "image ratio = width/height =" $ratio >> $textfilename
echo "zoom level = fractint mag = "$zoom >>$textfilename
echo "ratio = image width/height =  " $ratio >> $textfilename
echo "info text file " $textfilename "is saved"

output :

./examples/ian.sh
./render using MPFR<44>
rgba 1.000000 1.000000 1.000000 1.000000
Image  ian.png  is saved
info text file  ian.txt is saved

Result tekst file :

part of parameter complex plane 
center of image c =  -1.86057396001587505 -0.00000093437424500
radius = (image height/2) =  (3.5884751097983668*10^-09)
radius = (image height/2) =  3.5884751097983668e-09
up corner = center_im+radius = cu = -.00000093078576989021
down corner = center_im-radius = cd = -.00000093796272010979
left corner = center_re+ratio*radius = cl = -1.86057395523124157027
right corner = center_im-ratio*radius = cr = -1.86057396480050852973
image ratio = width/height = 1.33333333333333333333
zoom level = fractint mag = 278669900.00064976875376361505
ratio = image width/height =   1.33333333333333333333

References

  1. mightymandel by Claude Heiland-Allen
  2. book program in wikibooks

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current15:10, 17 January 2015Thumbnail for version as of 15:10, 17 January 20151,280 × 720 (543 KB)Adam majewskiUser created page with UploadWizard

Metadata