Analyzing the chaotic behavior of 3 bodies in space whose orbit is affected by the combined gravitational pull.
The following are Matlab algor
ithms for applications in dynamical systems and chaos problems.
mandleset.m - plots the Mandelbrot set for a given function f(z).
Begin by using function handle to enter function
such as the standard f(z)=z^2+c which can be entered into Matlab using
threebody_script.m ; threebody.m - plots the path of the 3-body problem described above.
Download both files to the same directory and run threebody_script.m. The second file contains the ODEs.
Example plot to the right.
twobody_script.m ; twobody.m - plots the path of two bodies in space affected by gravitational pull.
Download both files to the same directory and run twobody_script.m. The second file contains the ODEs.
lyapunov.m - calculates the Lyapunov exponent for a given set of 1-dimensional data to determine the chaotic nature of the data.