MRaster examples 21.0.0.0
Image Processing Library
|
Draw the intersection of the Attracting Torus Attractor with coordinate plains. More...
Go to the source code of this file.
Draw the intersection of the Attracting Torus Attractor with coordinate plains.
Copyright (c) 1988-2015, Mitchell Jay Richling https://www.mitchr.me All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
I first came across this strange attractor in Sprott's book "Elegant Automation" where it is the topic of chapter 43 starting on page 311. The system is given by the following system of equations:
\[\begin{align*} \frac{dx}{dt} & = a_1 y \\ \frac{dy}{dt} & = -a_2 x - a_3 y z \\ \frac{dz}{dt} & = a_4 y^2 - a_5 + a_6 z \end{align*}\]
Typical values for the constants are \( a_1=a_2=a_3=a_4=1 \), \( a_5=4 \), and \( a_6=\frac{1}{10} \).
On page 315 of Sprott's book is an image of the intersection of the attractor with the \( z=0 \) plane. This program reproduces that image along with the intersections of the \( x=0 \) & \( y=0 \) plane. As a bonus we produce projections of the curve as well.
Reference: Sprott, Julien C. Elegant Automation: Robotic Analysis of Chaotic Systems. New Jersey: World Scientific, 2023.
Definition in file attracting_torus_shadow.cpp.