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

Broadcasting weirdness

cscherrer opened this issue · comments

Hi, thanks for this great package!

I'm seeing some strange behavior with broadcasting. It's easy enough to work around, but still seems worth noting:

julia> (zeros(3)  1)  2
3-element Array{Measurement{Measurement{Float64}},1}:
 0.0 ± 1.0 ± 2.0 ± 0.0
 0.0 ± 1.0 ± 2.0 ± 0.0
 0.0 ± 1.0 ± 2.0 ± 0.0