News for hackers. Stuff that matters.
Re:The Emergent Features of JuliaLang: Part II – Traits by eigenspace on Saturday November 16, 2019 @03:08PM (#21554642)
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

There are no comments on this comment yet.