added math library for ecubeecal