Yep, the work is right. And the value you got back checking is easily accounted for by rounding/truncating errors (10^-10 is negligible compared to the other quantities involved).