File:Blancmange.svg

Summary

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

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.

Category:CC-Zero#Blancmange.svgCategory:Self-published work
Category:Black and white fractals Category:Fractal curves and islands Category:Function plots Category:Images with Python source code
Category:Black and white fractals Category:CC-Zero Category:Fractal curves and islands Category:Function plots Category:Images with Python source code Category:Self-published work