Library for physical mathematics