Inlined math library