Created
February 11, 2019 17:29
-
-
Save ErnestoRdS/3859e41c1df219704d56d2ce7e1b4bc7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int mandelbrotSet(double fnZ, float cnum, int nn) { | |
fnZ += (pow(fnZ, 2) + cnum); | |
if(fnZ > 2) | |
return 0; | |
else if(nn == 0) | |
return 1; | |
else | |
return mandelbrotSet(fnZ, cnum, nn-1); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment