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. In that chapter, on page 315, he has an image of the intersection of the attractor with the z=0 plain. This program reproduces that image along with the intersections of the x=0 & y=0 plain. 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.
Create a gif like this: time convert -delay 1 -loop 0 -dispose previous attracting_torus_shadowM_???.tiff attracting_torus_shadowM.gif time convert attracting_torus_shadowM.gif -resize 50% attracting_torus_shadowM_50.gif time convert attracting_torus_shadowM_50.gif -resize 50% attracting_torus_shadowM_25.gif
Convert color images to BW: magick attracting_torus_shadowZ0.tiff -alpha off -auto-threshold otsu attracting_torus_shadowZ0_BW.tiff magick attracting_torus_shadowY0.tiff -alpha off -auto-threshold otsu attracting_torus_shadowY0_BW.tiff magick attracting_torus_shadowX0.tiff -alpha off -auto-threshold otsu attracting_torus_shadowX0_BW.tiff
Build and load images in eshell on Windows: rm -f attracting_torus_shadow*.tiff; make attracting_torus_shadowM && { ./attracting_torus_shadow.exe ; for f in attracting_torus_shadow*.tiff { start $f } }
Definition in file attracting_torus_shadowM.cpp.