This is intended to be a sort-of kata for me. I will create multiple implementations of a simple mandlebrot generator, in order to practice programming and learn or refresh language skills.
To be considered correct,
-
- Given
- The program executable $MANDLEBROT located in $PATH
- Four ‘double precision’ floating point numbers for the real and complex range of the set, $RMIN $RMAX $IMIN $IMAX (eg -1.125 2.000 -1.8500502 1.562)
- A positive integer $ITER representing the maximum iterations
- $OUTFILE representing a file location where there is no current file. eg “/tmp/non-existing-file-1038561028475.raw”
- Then
- Following execution of this shell command $PATH\$MANDLEBROT -rmin $RMIN -rmax $RMAX -imin $IMIN -imax $IMAX -iter $ITER -out $OUTFILE
- There is a file containing a rendering the mandlebrot set in the file specified by -out which matches a refrence rendering exactly bit for bit. (output format to be determined)
- Accept command line arguments in any order
- Accept optional comandline argument -g, which will display a graphics window and show the rendering in real-time (or close enough).
- Optimization
- Accept any of -jpeg, -png, -bmp, -tiff and output this format to the outfile instead of raw.
- With no -out option, output to stdout
- Accept arbitrary precision floating point range numbers and max iteration count.