Math core library