Search


Rss feeds
Posts Comments Source Code
Rating
Image to SpectrogramNontransitive DicecheaTorrentDomain ColoringiMac G5 CPU Fan view all...
Recent
Pretty GraphHypernova EngineEmergent FeedbackSDL Euclid OrchardSingularity Viewer view all...
Tags

All source code released under the BSD License unless otherwise specified
© 2010, Gavin Black

Domain Coloring

Overview

This program generates a series of pictures which can be run through a program, such as ffmpeg, to produce a domain coloring movie. It also creates an X11 display for viewing it as you go.

The program was adapted from this code found on Wikipedia and with much help from Chris Wellons to actually get it to compile. I've since made an online version too.

Source Code

Source Tree: http://devrand.org:8080/cgi-bin/cgit/domainColoring/tree/
Snapshots: http://devrand.org:8080/cgi-bin/cgit/domainColoring/commit/
Git Access: git clone http://devrand.org:8080/git/domainColoring

Making Graphs

Being lazy I didn't include the ability to pass in parameters. Everything is defined in very simple to read constants at the top of domainColoring.c, and the function that defines the graph is called fun. Obviously every change requires a recompile. I know of no 'eval' type functionality in C, so no matter what the source always has to be changed when making a new function.

Movies Of Execution

  • Variables:
    • s: Complex input
    • t: Time/Frame of Animation
  • Click on a formula to see it's movie:
    • (s^t + 1)/(s^-t - s^t^t)
    • sin(s)/sin(t)
    • tan(s^t)/s
    • Complex Sine Approximation

Tetration

Teaser pictures, will expand more on this in the future:

Iterative exponential, this is the sample included in the source     Another tetration picture

Conclusion

This works well, and I have already gotten quite a bit of use out of it. This biggest drawback is needing to recompile for little changes to the algorithm used.



Last Edited: 2010-10-25 03:14:38

+ Add a comment


Chris Wellons said (2010-10-25 03:15:31):
I really like the first two animations, especially the periodicity of the second
one. And I like that you made the link images equations.