aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/fractals.c
diff options
context:
space:
mode:
authorJP Appel <jeanpierre.appel01@gmail.com>2024-04-26 17:24:33 -0400
committerJP Appel <jeanpierre.appel01@gmail.com>2024-04-26 17:24:33 -0400
commitc176f9491411f53000b0350cafc1d17db0ef09ec (patch)
treeea9474b6a5ebd045ba8d6bcc819f1d440e98cd6c /src/fractals.c
parent3063b6ffd771f68183e76185761bcbc91110ca0b (diff)
add degree, constant, radius to performance output
Diffstat (limited to 'src/fractals.c')
-rw-r--r--src/fractals.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/fractals.c b/src/fractals.c
index 80fcc18..898f30d 100644
--- a/src/fractals.c
+++ b/src/fractals.c
@@ -28,7 +28,7 @@ void print_help(){
" -l, --lower-left <value> Set the lower left corner of the fractal area (default: -2.0+-2.0i)\n"
" -u, --upper-right <value> Set the upper right corner of the fractal area (default: 2.0+2.0i)\n"
" -z, --magnification <value> Set the magnification factor (default: 1)\n"
- " -d, --degree <value> Set the degree for fractals that use it (default: 1)\n"
+ " -d, --degree <value> Set the degree for fractals that use it (default: 2)\n"
" -c, --constant <value> Set the constant for fractals that use it (default: 0+0i)\n"
" -r, --radius <value> Set the radius for fractals that use it (default: 2)\n"
" -o, --output <filename> the output filename (default: fractal.grid)\n"
@@ -84,7 +84,7 @@ int main(const int argc, char *argv[]) {
//degree is mutually exclusive with constant and radius
bool param_is_degree = false;
bool param_is_cr = false;
- CBASE degree = 1;
+ CBASE degree = 2;
complex_t constant = { .re = 0, .im = 0};
double radius = 2;
@@ -264,9 +264,9 @@ int main(const int argc, char *argv[]) {
if(performance){
double time = time_fractal(generator, grid, params);
- printf("%s,%s,%hhu,%zu,%zu,"
- CFORMAT","CFORMAT","CFORMAT","CFORMAT",%f\n",
- argv[0], fractal_name, iterations, x_res, y_res,
+ printf("%s,%s,%lf,"CFORMAT","CFORMAT",%lf,%hhu,%zu,%zu,",
+ argv[0], fractal_name, degree, constant.re, constant.im, radius, iterations, x_res, y_res);
+ printf(CFORMAT","CFORMAT","CFORMAT","CFORMAT",%f\n",
lower_left.re, lower_left.im, upper_right.re, upper_right.im, time);
}