File:Sine fixed point.svg

Summary

Fixed point iteration of the sine function.

If using this as a starter for creating for iterative graphs, see Image:Cosine fixed point.svg for a superior, more abstracted method.

SVG replacement for Image:sine fixed point.png. Created in w:Gnuplot:


set term svg
set out "sine.svg"

set multiplot
set size ratio 0.5
unset key
set xrange [0:pi]
set yrange [0:1]
set xtics axis
set ytics axis
set border 3

unset parametric
set samples 100
plot x with lines lc 3
plot sin(x) with lines lc 3

set parametric
iter_y(y, n) = n >= 0 
iter_x(x, n) = n >= 0 

iter2_sin_x(x, n) = n>0 ? iter1_sin_x(sin(x), n-1) : x
iter1_sin_x(x, n) = n>0 ? iter2_sin_x(x, n-1) : x
iter_sin_x(x, n) = n>0 ? iter2_sin_x(x, n-1) : x
iter2_sin_y(y, n) = n>0 ? iter1_sin_y(y, n-1) : y
iter1_sin_y(y, n) = n>0 ? iter2_sin_y(sin(y), n-1) : y
iter_sin_y(y, n) = n>0 ? iter2_sin_y(sin(y), n-1) : 0
set samples 21
plot [0:20] iter_sin_x(2,t),iter_sin_y(2,t) with lines lc 1

unset multiplot

Licensing

I, the copyright holder of this work, hereby publish it under the following licenses:
GNU head Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled GNU Free Documentation License.
Category:License migration redundant#Sine%20fixed%20point.svgCategory:GFDL#Sine%20fixed%20point.svg
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
This licensing tag was added to this file as part of the GFDL licensing update.
Category:CC-BY-SA-3.0-migrated#Sine%20fixed%20point.svg
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 2.5 Generic, 2.0 Generic and 1.0 Generic license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
Category:CC-BY-SA-2.5,2.0,1.0#Sine%20fixed%20point.svg
You may select the license of your choice.
Category:Self-published work Category:Images with Gnuplot source code Category:Sine function Category:Fixed point Category:SVG mathematics Category:Media missing infobox template Category:Cobweb plots
Category:CC-BY-SA-2.5,2.0,1.0 Category:CC-BY-SA-3.0-migrated Category:Cobweb plots Category:Files with no machine-readable author Category:Files with no machine-readable source Category:Fixed point Category:GFDL Category:Images with Gnuplot source code Category:License migration redundant Category:Media missing infobox template Category:SVG mathematics Category:Self-published work Category:Sine function