JuliaPhysics / Measurements.jl

Error propagation calculator and library for physical measurements. It supports real and complex numbers with uncertainty, arbitrary precision calculations, operations with arrays, and numerical integration.

Home Page:https://juliaphysics.github.io/Measurements.jl/stable/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wrong results

s1291 opened this issue · comments

On julia 1.5.2 and Measurements v2.3.0:

using Measurements
x = 5.0 ± 0.2
y = 8.0 ± 0.3
x + y

Output:

13.0 ± 0.36

What's the issue?

There are multiple ways to propagate uncertainties and no one is "perfect" in all cases. You are expecting to simply sum the absolute values of the uncertainties, but this package chose the linear error propagation theory, as explained in the manual and in the README.md file. The manual has an entire page which explains the propagation model adopted here.