Mathmatics library and advanced calculator package