Implementation of various special functions for my own enjoyment.