MCPcopy Create free account
hub / github.com/HackerPoet/FractalSoundExplorer / mandelbrot

Function mandelbrot

Main.cpp:62–67  ·  view source on GitHub ↗

All fractal equations

Source from the content-addressed store, hash-verified

60
61//All fractal equations
62void mandelbrot(double& x, double& y, double cx, double cy) {
63 double nx = x*x - y*y + cx;
64 double ny = 2.0*x*y + cy;
65 x = nx;
66 y = ny;
67}
68void burning_ship(double& x, double& y, double cx, double cy) {
69 double nx = x*x - y*y + cx;
70 double ny = 2.0*std::abs(x*y) + cy;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected