How to check the accuracy of calculations?