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

Function duffing

Main.cpp:96–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94 y = ny;
95}
96void duffing(double& x, double& y, double cx, double cy) {
97 double nx = y;
98 double ny = -cy*x + cx*y - y*y*y;
99 x = nx;
100 y = ny;
101}
102void ikeda(double& x, double& y, double cx, double cy) {
103 double t = 0.4 - 6.0 / (1.0 + x*x + y*y);
104 double st = std::sin(t);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected