MakarovSuites
English
EnglishDeutschРусскийУкраїнськаFrançaisEspañolItalianoPolski
Contact & licences

Math

The precision race

Accuracy is bought with work, and the exchange rate is not a property of the method. Four rules integrate the same function and the currency is how many times the function is read: the race is run on a chart of error against evaluations with a tolerance line you set, after you predict the winner. On a smooth function Gauss reaches machine precision in eight readings where the trapezoid rule needs sixty-five thousand; put one kink in the function and every high-order rule collapses to the same crawl. And past ten million terms the additions themselves lose six digits.

The precision race — Actual application image
Actual application image

What happens

Four ways to integrate a function, racing on one currency: evaluations of the function. On a smooth integrand the trapezoid rule gains two digits every time the step halves, Simpson four, Romberg more with every level, and Gauss wins outright - eight points to fifteen digits. Put a kink in the integrand and the race collapses: every rule crawls at the trapezoid's pace and Gauss, which assumes smoothness, never gets there. Make it wiggly and the order flips again. Try the three integrands and watch who reaches 1e-10 first and at what cost.

Equations used in the module
Equations
trapezoid: error ~ h², Simpson ~ h⁴, Romberg ~ h^{2k}, Gauss ~ e^{−cn} (smooth f)
cost = evaluations of f, not steps
e^x on [0,1], 9 evaluations: 2e−3 / 2e−6 / 3e−10 / 1e−15
|x − 0.4|: every rule ~ h², Gauss no better

Related experiments

Back to catalogue
Wallpaper groups and Penrose — Actual application image

Math

Wallpaper groups and Penrose

The seventeen wallpaper groups, each built from one or two generators and applied to a motif you drag; mirrored copies in a second colour, so rotations, reflections and glides can be told apart by eye. The group's order, its rotations and its mirrors read off the elements, not off the name. And the eighteenth pattern - Penrose rhombi - with thick and thin counts walking to the golden ratio.

Why the bell appears — Actual application image

Math

Why the bell appears

Add up draws from any shape - a die, a loaded coin, two humps, the long tail of a waiting time - and the standardised sum turns into the same bell. One sample is collected before your eyes and becomes one point of the series beside it; the sum, the mean and the standardised sum are three names of that point. Cumulants of a sum add, so the skewness falls as 1/√n and the excess kurtosis as 1/n, and the sheet measures both. And one source breaks it: a Cauchy has no variance, and no bell ever appears.

The average settles, the count does not — Actual application image

Math

The average settles, the count does not

A chain you can read - outcome, sum, mean - and two charts on one log-n axis with one cursor: the mean's deviation walks into a funnel of ±2σ/√n, while the excess count S_n − nμ grows like √n and never settles. Predict first whether the excess goes to zero too, then let the run climb; six other runs under the same conditions stand beside it. A forced streak is forgotten by the mean and kept by the count; for the coin the numbers are exact from the binomial; and a Cauchy source, which has no mean, never settles at all.