File:CollatzConjectureGraphMaxValues.jpg

From testwiki
Jump to navigation Jump to search
    Original file (437 × 818 pixels, file size: 66 KB, MIME type: image/jpeg)

    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

    Description
    English: The horizontal axis is a starting value n. The vertical axis represents the max value reached, following the collatz conjecture rule (n%2==0)?n/2:n*3+1, in the "chain" to one. Created using the following Mathematica code
    Clear[maxList, nMax, n, nLooper]
    
    n = 1;
    
    maxList = {};
    
    
    
    
    goTo = 10000;
    While[n <= goTo,
     
     nLooper = n;
     nMax = n;
     While[nLooper > 1,
      If[nLooper > nMax, nMax = nLooper]
       
       If[Mod[nLooper, 2] == 0,
        nLooper = nLooper / 2,
        nLooper = nLooper * 3 + 1
        ]
      
      
      ];
     
     maxList = Join[maxList, {nMax}];
     n++;
    
     ]
    ListPlot[maxList, AspectRatio -> 2] 
    
    (end of listing)
    Date
    Source Personal Work, Created using Wolfram Mathematica software version 7.0.1.0
    Author Ryan McNamara
    This math image could be re-created using vector graphics as an SVG file. This has several advantages; see Commons:Media for cleanup for more information. If an SVG form of this image is available, please upload it and afterwards replace this template with {{vector version available|new image name}}.
    It is recommended to name the SVG file “CollatzConjectureGraphMaxValues.svg”—then the template Vector version available (or Vva) does not need the new image name parameter.

    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 4.0 International, 3.0 Unported, 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

    3 August 2011

    image/jpeg

    4570a2b7354c3dd7ef85b2e0746f87d27e44ab0f

    67,975 byte

    818 pixel

    437 pixel

    File history

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

    Date/TimeThumbnailDimensionsUserComment
    current23:09, 7 August 2011Thumbnail for version as of 23:09, 7 August 2011437 × 818 (66 KB)wikimediacommons>Ryanmcnamara10132{{Information |Description ={{en|1=The horizontal axis is a starting value n. The vertical axis represents the max value reached, following the collatz conjecture rule (n%2==0)?n/2:n*3+1, in the "chain" to one. Created using the following Mathematica c

    There are no pages that use this file.