Skip to content

Instantly share code, notes, and snippets.

@VentGrey
Forked from ErnestoRdS/Escroto.c
Created February 11, 2019 17:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save VentGrey/e30238e918f9dde5bbecf1c7857ead91 to your computer and use it in GitHub Desktop.
Save VentGrey/e30238e918f9dde5bbecf1c7857ead91 to your computer and use it in GitHub Desktop.
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