Initial copy of the math library.