aboutsummaryrefslogtreecommitdiff
path: root/mandelbrot.c
diff options
context:
space:
mode:
Diffstat (limited to 'mandelbrot.c')
-rw-r--r--mandelbrot.c25
1 files changed, 7 insertions, 18 deletions
diff --git a/mandelbrot.c b/mandelbrot.c
index 053ce70..c5f5148 100644
--- a/mandelbrot.c
+++ b/mandelbrot.c
@@ -1,28 +1,11 @@
#include <stdio.h>
#include <math.h>
#include <complex.h>
-
-#define LO -1.7
-#define HI 1.7
-#define AXIS_DIV 46.0
-#define AXIS_STEP ((HI - LO) / AXIS_DIV)
-
-#define MAX_ITERATION 1000
-#define _INFINITY 1000
+#include "header.h"
#define IN_CHAR '*'
#define OUT_CHAR ' '
-/*
-#define SQUARE(x) (pow((x), 2))
-#define SQUARE_CML(z) (SQUARE(creal(z)) - SQUARE(cimag(z)) + 2 * creal(z) * cimag(z) * I)
-
-double magnitude(double complex z)
-{
- return sqrt(SQUARE(creal(z)) + SQUARE(cimag(z)));
-}
-*/
-
double mandelbrot_in_set(double complex c)
{
int i;
@@ -52,3 +35,9 @@ void mandelbrot_print(void)
}
}
+/*
+#define SQUARE(x) (pow((x), 2))
+#define SQUARE_CML(z) (SQUARE(creal(z)) - SQUARE(cimag(z)) + 2 * creal(z) * cimag(z) * I)
+
+double magnitude(double complex z) { return sqrt(SQUARE(creal(z)) + SQUARE(cimag(z))); }
+*/