Keywords: Propagation of the wave.gif en Animation of propagation of the wave see en wave equation у авнении колебания ст уны 2010-04-20 own Ilya Voyager Other versions Mixed initial condition for vibrating string svg 64 l initial condition Sources The following gnuplot perl and shell sources are in public domain as well n header gpi set samples 10000 l 6 set xrange 0 l set yrange -1 1 unset key unset border unset tics f x abs x-1 <1 sqrt 1- x-1 2 0 normalize x len x/len-floor x/len len g x x>l -f 2 l-x f x h x g normalize x 2 l perl /usr/bin/perl prop pl open FILE header gpi ; print join <FILE> ; close FILE ; system cat header gpi ; This can be used for UNIX instead of previous 3 lines l 6; for t 0; t< 2 l; t+ l/20 print set term svg size 400 200\n ; printf 'set out prop 010 2f svg ' \n t ; print plot 0 5 h x- t +2 0 5 h x+ t +2 0 5 h x- t +h x+ t \n ; print plot 0 5 h x- t +h x+ t w l lw 2\n ; printf set out\n ; bash /bin/bash perl prop pl gnuplot mkdir gif; for FILE in svg; do convert FILE -flatten gif/ FILE gif; done cd gif; convert svg gif -delay 50 -loop 0 prop gif Animations of vibrations and waves Pulse physics Animated GIF Images with BASH source code Images with Perl source code cc-zero |