File:Collatz-graph-all-30-no27.svg
From Wikimedia Commons, the free media repository
Jump to navigation
Jump to search
Size of this PNG preview of this SVG file: 72 × 593 pixels. Other resolutions: 29 × 240 pixels | 58 × 480 pixels | 93 × 768 pixels | 124 × 1,024 pixels | 248 × 2,048 pixels | 258 × 2,125 pixels.
Original file (SVG file, nominally 258 × 2,125 pixels, file size: 20 KB)
File information
Structured data
Captions
Captions
Add a one-line explanation of what this file represents
يمكن اعتبار المشكلة التي يثيرها هي مشكلة رياضية غير محلولة بعد وقد سميت باسم Lothar Collatz الذي اكتشفها عام 1937 م.
Summary
[edit]Directed graph showing the orbits of the numbers less than 30 (with the exception of 27 because it would make it too tall) under the Collatz map.
For a larger graph containing only odd numbers, see Image:Collatz-graph-300.svg.
Created with Graphviz, with the help of this Python program:
dotfile = file('collatz-graph.dot', 'w') limit = 30 def f(n): if n % 2 == 0: return n / 2 else: return 3*n + 1 explored = set([1,27]) # 27 has a long convergence, so skip it dotfile.write('digraph {\n') for n in range(2, limit): while n not in explored: dotfile.write(str(n) + ' -> ') explored.add(n) n = f(n) dotfile.write(str(n) + ';\n') dotfile.write('}\n')
enSVG development
InfoField
This diagram was created with Graphviz.
This diagram uses embedded text that can be easily translated using a text editor.
Source code
InfoField
Graphviz mscgen code
dotfile = file('collatz-graph.dot', 'w')
limit = 30
def f(n):
if n % 2 == 0:
return n / 2
else:
return 3*n + 1
explored = set([1,27]) # 27 has a long convergence, so skip it
dotfile.write('digraph {\n')
for n in range(2, limit):
while n not in explored:
dotfile.write(str(n) + ' -> ')
explored.add(n)
n = f(n)
dotfile.write(str(n) + ';\n')
dotfile.write('}\n')
Licensing
[edit]Public domainPublic domainfalsefalse |
This work has been released into the public domain by its author, I, Keenan Pepper. This applies worldwide. In some countries this may not be legally possible; if so: I, Keenan Pepper grants anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law. |
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 22:55, 10 June 2007 | 258 × 2,125 (20 KB) | Keenan Pepper (talk | contribs) | Directed graph showing the orbits of the numbers less than 30 (with the exception of 27 because it would make it too tall) under the Collatz map. For a larger graph containing only odd numbers, see [[:Image:Collatz-graph-300.sv |
You cannot overwrite this file.
File usage on Commons
There are no pages that use this file.
File usage on other wikis
The following other wikis use this file:
- Usage on ar.wikipedia.org
- Usage on el.wikipedia.org
- Usage on ko.wikipedia.org
- Usage on pl.wikipedia.org
- Usage on sl.wikipedia.org
- Usage on uk.wikipedia.org