my own math library