ملف:Collatz-graph-all-30-no27.svg

من testwiki
اذهب إلى التنقل اذهب إلى البحث
الملف الأصلي (ملف SVG، أبعاده ٢٥٨ × ٢٬١٢٥ بكسل، حجم الملف: ٢٠ كيلوبايت)

هذا الملف من ويكيميديا كومنز ويمكن استخدامه بواسطة المشاريع الأخرى. الوصف على صفحة وصف الملف هناك معروض بالأسفل.

يمكن اعتبار المشكلة التي يثيرها هي مشكلة رياضية غير محلولة بعد وقد سميت باسم Lothar Collatz الذي اكتشفها عام 1937 م.


ملخص

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 منشأ الملف

InfoField
 الشيفرة المصدرية لهذا الرسم المتجه صالحة.
 هذا الرسم المتجهي أُنشئ بواسطة Graphviz
  This diagram uses embedded text that can be easily translated using a text editor.

نص برمجي مصدري

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')

ترخيص

Public domain وضع -Keenan Pepper-، وهو المؤلف، هذا العمل في النِّطاق العامِّ. يسري ذلك في كل أرجاء العالم.
في بعض البلدان، قد يكون هذا التَّرخيص غيرَ مُمكنٍ قانونيَّاً، في هذه الحالة:
يمنح Keenan Pepper الجميع حق استخدام هذا العمل
لأي غرض دون أي شرط ما لم يفرض القانون شروطًا إضافية.

الشروحات

أضف شرحاً من سطر واحد لما يُمثِّله هذا الملف

العناصر المصورة في هذا الملف

يُصوِّر

٢٠٬٧٤٥ بايت

٢٬١٢٥ بكسل

٢٥٨ بكسل

تاريخ الملف

اضغط على زمن/تاريخ لرؤية الملف كما بدا في هذا الزمن.

زمن/تاريخصورة مصغرةالأبعادمستخدمتعليق
حالي٢٣:٥٥، ١٠ يونيو ٢٠٠٧تصغير للنسخة بتاريخ ٢٣:٥٥، ١٠ يونيو ٢٠٠٧٢٥٨ × ٢٬١٢٥ (٢٠ كيلوبايت)wikimediacommons>Keenan PepperDirected 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

الصفحة التالية تستخدم هذا الملف: