1
0
mirror of https://github.com/osmarks/random-stuff synced 2024-11-17 01:14:48 +00:00

change break condition

This commit is contained in:
osmarks 2021-04-30 19:45:26 +01:00
parent 5bee383be6
commit 5e087361fd

View File

@ -26,7 +26,7 @@ int main(int argc, char **argv) {
int i = 0;
double complex z = 0;
double complex c = x + y * I;
for (; i < MAX_ITERS && cabs(z) < 5.0; i++) {
for (; i < MAX_ITERS && cabs(z) < 2.0; i++) {
z = z*z + c;
}
if (i != MAX_ITERS) {