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:
parent
5bee383be6
commit
5e087361fd
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user