A mathematics library for linear algebra and differential equations