Using the Box–Muller transform to generate unbiased random directions in an n-dimensional space

Image for post
Image for post
Photo by Galina Tcarkova on Unsplash

The Problem


The day my unit tests validated a thousand wrong calculations

Image for post
Image for post
Photo by Miron Cristina on Unsplash


Design and program your own data capture hardware

Image for post
Image for post


C Programming

Situations where labeled branching makes your C code better

Image for post
Image for post
Photo by Trevor Cole on Unsplash


PYTHON PROGRAMMING

The right way to represent a finite set of alternatives

Image for post
Image for post
Photo by Louis Hansel @shotsoflouis on Unsplash
  • Days of the week: Monday, Tuesday, …, Sunday.
  • Types of image file format: JPEG, PNG, GIF, ….
  • The suits in a card game: club, diamond, heart, spade.
  • The states of some finite state machine.

Unsatisfactory Substitutes


How it’s possible to beat world-class compression algorithms in certain special cases

Image for post
Image for post
Photo by Rodrigo Pereira on Unsplash

The Challenge


A language feature that unpleasantly surprises almost everyone

Image for post
Image for post
Photo by uomo libero on Unsplash

An Example


Curiosities, triumphs, and horrors from a Victorian era textbook

Image for post
Image for post
A nineteenth-century stomach pump.


Some friendly advice from the CDC — if you know what’s good for you

Image for post
Image for post
Photo by Online Marketing on Unsplash


With a C++ demo to create a fractal zoom

Image for post
Image for post
Created by Wolfgang Beyer with the program Ultra Fractal 3. (CC BY-SA 3.0)

About

Don Cross

Husband, computer programmer, yoga teacher, cat servant. https://github.com/cosinekitty

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store