Skip to content

Instantly share code, notes, and snippets.

View nashley's full-sized avatar

nashley nashley

View GitHub Profile
@nashley
nashley / mandelbrot.c
Created January 16, 2016 22:29 — forked from panzi/mandelbrot.c
gcc -lm -Wall -Werror -Wextra -pedantic -std=c99 -O3 -o mandelbrot mandelbrot.c original: http://preshing.com/20110926/high-resolution-mandelbrot-in-obfuscated-python/
#include <stdio.h>
#include <complex.h>
#define dc double complex
dc
Y(dc
V,
dc B,dc c){
return
(cabs (V)<6)?(c?Y(V *V+
B,B,c-1):c):(2+c-4*cpow