Error calculus for finance and physics