change break condition

This commit is contained in:
osmarks 2021-04-30 19:45:26 +01:00
parent 5bee383be6
commit 5e087361fd
1 changed files with 1 additions and 1 deletions

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) {