File:Moser–de Bruijn counts.svg
Original file (SVG file, nominally 540 × 432 pixels, file size: 257 KB)
Captions
Summary[edit]
DescriptionMoser–de Bruijn counts.svg |
English: Plot of the number of values in the Moser–de Bruijn sequence up to , normalized by dividing the vertical scale by . The horizontal scale () is logarithmic, with powers of four marked. |
Date | |
Source | Own work |
Author | David Eppstein |
Source code[edit]
Captions added manually to a plot generated by the following source code:
import sys
from PADS.SVG import *
from math import log
def inmdb(n):
return n & 0x55555555 == n
def height(r):
return 432j-(360*(r-1)+36)*1j
def across(n):
return 72*(log(n)/log(4)+0.5)
svg = SVG(540+432j,sys.stdout)
svg.group(stroke=colors.blue) # 1/3 and 1 horiz, powers of 4 vertical
for vert in [1,1.5,2]:
svg.segment(height(vert),height(vert)+540,stroke=colors.green)
for power in [1,4,16,64,256,1024,4096]:
svg.segment(across(power)+432j,across(power),stroke=colors.green)
svg.ungroup()
points = []
count = 1
for n in range(1,4**7+1):
if inmdb(n):
count += 1
points.append(height(count/(n**0.5))+across(n))
svg.polyline(points,stroke=colors.red,fill="none")
svg.close()
Licensing[edit]
This file is made available under the Creative Commons CC0 1.0 Universal Public Domain Dedication. | |
The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.
http://creativecommons.org/publicdomain/zero/1.0/deed.enCC0Creative Commons Zero, Public Domain Dedicationfalsefalse |
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 11:56, 14 December 2016 | 540 × 432 (257 KB) | Bkell (talk | contribs) | fixed labels on horizontal axis | |
07:56, 20 November 2016 | 540 × 432 (257 KB) | David Eppstein (talk | contribs) | typo | ||
07:46, 20 November 2016 | 540 × 432 (257 KB) | David Eppstein (talk | contribs) | User created page with UploadWizard |
You cannot overwrite this file.
File usage on Commons
The following page uses this file:
File usage on other wikis
The following other wikis use this file:
- Usage on en.wikipedia.org
Metadata
This file contains additional information such as Exif metadata which may have been added by the digital camera, scanner, or software program used to create or digitize it. If the file has been modified from its original state, some details such as the timestamp may not fully reflect those of the original file. The timestamp is only as accurate as the clock in the camera, and it may be completely wrong.
Width | 540px |
---|---|
Height | 432px |