maitag / lyapunov-c

command line tool that generates ppm images to visualize dynamic system functions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

lyapunov-c

This little command line tool calculates the lyapunov-indices from a function input
and puts out an image in plain ppm format.

It simmulates behavior of a dynamic system to get fractal
images like this:

Build binary and test

make
sh test.sh

Use interactive first

./lyapunov

to see order of input parameters.

Generate images

On linux you can use image converting tools like netpbm

aptitude install netpbm

and little shell script to pipe output throught ppmtojpeg (or other format convertor):

cat <<EOF | ./lyapunov -p | ppmtojpeg > ${0%.*}.jpg
2.5*sin(x+a)^2+2
0-i*200
0
i*200
400
300
-1
1
-1
1
0
10
100
EOF

Todo

  • symbolic differentation for equations like f(x) = a^g(x)

About

command line tool that generates ppm images to visualize dynamic system functions

License:GNU General Public License v3.0


Languages

Language:C 99.2%Language:Makefile 0.6%Language:Shell 0.2%