Skip to content

Instantly share code, notes, and snippets.

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