Scott's simple math library