From what I read, when adding two $x$ and $y$ measurements with uncertainties $\delta x$ and $\delta y$, the resulting uncertainty is determined by doing:
$$\delta z = \sqrt{(\delta x)^2 + (\delta y)^2}$$
I am writing a software library to handle measurements and it includes the concept of precision/uncertainty. However, I have no way of knowing the context of the measurements. Is therefor not more correct for me to "assume the worst" and do:
$$\delta z = \delta x + \delta y$$
I know, from what I read, that this overestimates the uncertainty of $z$, and that it is very unlikely for both uncertainties to be their maximum. But on the other hand, it is theoretically possible and it's not up to me to make assumptions.
At least, that's my thinking process for now, but I'm no physics expert. But I would like my software library to be as correct as possible.