2 ms·
Just as a followup, I just realized that the Measurements.jl package does know how to deal with non-real uncertainties, so one can instead do using Unitful
by eigenspace 7y ago
Just as a followup, I just realized that the Measurements.jl package does know how to deal with non-real uncertainties, so one can instead do
using Unitful, Measurements
const m = u"m"
const k = 2π/10m
f(x) = cos(k * x)/(k^2 - 1/x^2)
julia> f(10.0m ± 0.1m)
(2.5989 ± 0.0014) - (0.0 ± 0.16)im m^2