yaworsw/euler-manager

View on GitHub
data/problems/226.yml

Summary

Maintainability
Test Coverage
---
:id: 226
:name: A Scoop of Blancmange
:url: https://projecteuler.net/problem=226
:content: "The _blancmange curve_ is the set of points (<var>x</var>,<var>y</var>)
  such that 0 ≤ <var>x</var> ≤ 1 and ![]({{ images_dir }}/p226_formula.gif) ,  \nwhere
  <var>s</var>(<var>x</var>) = the distance from <var>x</var> to the nearest integer.\n\nThe
  area under the blancmange curve is equal to ½, shown in pink in the diagram below.\n\n
  ![blancmange curve]({{ images_dir }}/p226_scoop2.gif)\n\nLet <var>C</var> be the
  circle with centre (¼,½) and radius ¼, shown in black in the diagram.\n\nWhat area
  under the blancmange curve is enclosed by <var>C</var>?  \nGive your answer rounded
  to eight decimal places in the form _0.abcdefgh_\n\n"