File:Blancmange.svg

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Original file (SVG file, nominally 600 × 400 pixels, file size: 103 KB)

Captions

Captions

This is a plot of the 12th iteration of the Blancmange curve.

Summary

[edit]
Description
English: The Blancmange curve is a fractal curve defined by an infinite series. This specific plot adds only the first twelve terms in that series, which produces a result that is indistinguishable (by eye) from the true curve. This file was created using my own Python code.
Date
Source Own work
Author Alden Bradford

The following Python code produces the y-coordinates used:

   import numpy as np
   def blanc_iter(arr):
       bumplength = 1/(arr.size-1)
       means = (arr[1:]+arr[:-1])/2
       newheights = means + bumplength
       out = np.empty(arr.size+newheights.size)
       out[::2] = arr
       out[1::2] = newheights
       return out
   def blanc_gen():
       blanc = np.array([0,0])
       while True:
           yield blanc
           blanc = blanc_iter(blanc)

Licensing

[edit]
I, the copyright holder of this work, hereby publish it under the following license:
Creative Commons CC-Zero 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.

File history

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

Date/TimeThumbnailDimensionsUserComment
current21:16, 20 November 2020Thumbnail for version as of 21:16, 20 November 2020600 × 400 (103 KB)AldenMB (talk | contribs)specified the xmlns
20:57, 20 November 2020No thumbnail0 × 0 (119 KB)AldenMB (talk | contribs)Uploaded own work with UploadWizard

There are no pages that use this file.

File usage on other wikis

The following other wikis use this file:

Metadata