File:Sine fixed point.svg

From testwiki
Jump to navigation Jump to search
    Original file (SVG file, nominally 600 × 480 pixels, file size: 13 KB)

    This file is from Wikimedia Commons and may be used by other projects. The description on its file description page there is shown below.

    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.
    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.
    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.
    You may select the license of your choice.

    Captions

    Add a one-line explanation of what this file represents

    Items portrayed in this file

    depicts

    File history

    Click on a date/time to view the file as it appeared at that time.

    Date/TimeThumbnailDimensionsUserComment
    current18:47, 5 February 2007Thumbnail for version as of 18:47, 5 February 2007600 × 480 (13 KB)wikimediacommons>EnEdCSVG replacement for Image:sine fixed point.png

    There are no pages that use this file.