A calculator is a device that performs calculations. It is usually handheld and its primary purpose is to simplify the computation of mathematical problems.
A math library on the other hand, is a software that contains pre-written algorithms for mathematical computations and data structures.