# \#measurements

**URL:** https://discourse.julialang.org/tag/measurements/784.md

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

---

## [ModelingToolkit problem generation errors for array-valued parameters with Measurements](https://discourse.julialang.org/t/modelingtoolkit-problem-generation-errors-for-array-valued-parameters-with-measurements/133210)

<div class="topic-metadata">

**Author:** [@bspanoghe](https://discourse.julialang.org/u/bspanoghe)\
**Replies:** 1\
**Last updated:** [October 17, 2025, 9:27am UTC](https://discourse.julialang.org/t/modelingtoolkit-problem-generation-errors-for-array-valued-parameters-with-measurements/133210 "2025-10-17T09:27:02Z")

</div>

I’ve been running into errors trying to use Measurements.jl combined with ModelingToolkit.jl when there’s array-valued parameters involved. Consider the following toy problem: using ModelingToolkit, Measurements import …

---

## [Trouble with Measurements.jl and Bessel Functions](https://discourse.julialang.org/t/trouble-with-measurements-jl-and-bessel-functions/4562)

<div class="topic-metadata">

**Author:** [@Jason\_Kilpatrick](https://discourse.julialang.org/u/Jason_Kilpatrick)\
**Replies:** 7\
**Last updated:** [September 7, 2025, 4:02pm UTC](https://discourse.julialang.org/t/trouble-with-measurements-jl-and-bessel-functions/4562 "2025-09-07T16:02:47Z")

</div>

I am using Measurements.jl for error propagation in my code and have come across an error when trying to use it with a Bessel function with a complex input. This works using Measurements x = 1 ± 0.5 y = besselk(1. , x…

---

## [Uncertainty propagation using MonteCarloMeasurements gives weird results](https://discourse.julialang.org/t/uncertainty-propagation-using-montecarlomeasurements-gives-weird-results/124745)

<div class="topic-metadata">

**Author:** [@Iddingsite](https://discourse.julialang.org/u/Iddingsite)\
**Replies:** 8\
**Last updated:** [January 14, 2025, 6:39pm UTC](https://discourse.julialang.org/t/uncertainty-propagation-using-montecarlomeasurements-gives-weird-results/124745 "2025-01-14T18:39:47Z")

</div>

Hi! I am not familiar with MonteCarloMeasurements.jl, so I am probably doing something dumb, but I thought that it would be the good tool for what I want to do and I am getting some weird results. I am trying to calcul…

---

## [How to fit a function to measurements with error?](https://discourse.julialang.org/t/how-to-fit-a-function-to-measurements-with-error/65369)

<div class="topic-metadata">

**Author:** [@DaWa](https://discourse.julialang.org/u/DaWa)\
**Replies:** 12\
**Last updated:** [September 8, 2024, 8:28pm UTC](https://discourse.julialang.org/t/how-to-fit-a-function-to-measurements-with-error/65369 "2024-09-08T20:28:27Z")

</div>

Hi all, I am currently using Measurements.jl for error propagation and LsqFit.jl for fitting functions to data. Is there a simple way to fit a function to data with errors? It would be no problem to use an other package…

---

## [Weird results while trying to measure allocation :/](https://discourse.julialang.org/t/weird-results-while-trying-to-measure-allocation/117745)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 1\
**Last updated:** [August 2, 2024, 12:19am UTC](https://discourse.julialang.org/t/weird-results-while-trying-to-measure-allocation/117745 "2024-08-02T00:19:16Z")

</div>

Consider this Julia program: f() = Vector{Int}(undef, 128\*1024\*1024) (@timed f()).bytes (r = @timed f()); r.bytes Why do recent versions of Julia (v1.8 and up) evaluate the second line as 0? It really seems like the se…

---

## [MonteCarloMeasurements.jl - Object with Particles Passed to Function with Comparison Operator](https://discourse.julialang.org/t/montecarlomeasurements-jl-object-with-particles-passed-to-function-with-comparison-operator/105843)

<div class="topic-metadata">

**Author:** [@matthew3245](https://discourse.julialang.org/u/matthew3245)\
**Replies:** 5\
**Last updated:** [November 6, 2023, 12:56pm UTC](https://discourse.julialang.org/t/montecarlomeasurements-jl-object-with-particles-passed-to-function-with-comparison-operator/105843 "2023-11-06T12:56:06Z")

</div>

I’m trying to pass an object that contains particles to a function that uses comparison operators. Consider the following simple example: using MonteCarloMeasurements mutable struct Foo{T} p::T end function add\_on…

---

## [Problem combining Unitful and MonteCarloMeasurements](https://discourse.julialang.org/t/problem-combining-unitful-and-montecarlomeasurements/35418)

<div class="topic-metadata">

**Author:** [@klaff](https://discourse.julialang.org/u/klaff)\
**Replies:** 12\
**Last updated:** [April 11, 2023, 10:32am UTC](https://discourse.julialang.org/t/problem-combining-unitful-and-montecarlomeasurements/35418 "2023-04-11T10:32:39Z")

</div>

Consider the functions f1 and f2: using MonteCarloMeasurements using Unitful function f1(Vi) if Vi ≤ 0.0 return 0.0 elseif Vi ≥ 1.0 return 1.0 else Vi end end function f2(Vi) …

---

## [Uncertainty calculation in measurements.jl](https://discourse.julialang.org/t/uncertainty-calculation-in-measurements-jl/94637)

<div class="topic-metadata">

**Author:** [@CurioMath](https://discourse.julialang.org/u/CurioMath)\
**Replies:** 2\
**Last updated:** [February 15, 2023, 4:29am UTC](https://discourse.julialang.org/t/uncertainty-calculation-in-measurements-jl/94637 "2023-02-15T04:29:51Z")

</div>

Hi, It was really amazing to see Measurents.jl handling uncertainty propagation … However I would like to know what is the level of confidence used in the uncertainty calculation in measurements.jl. Does that takes …

---

## [How should I account for measurement resolution (particularly in Measurements.jl)?](https://discourse.julialang.org/t/how-should-i-account-for-measurement-resolution-particularly-in-measurements-jl/93448)

<div class="topic-metadata">

**Author:** [@bertulli](https://discourse.julialang.org/u/bertulli)\
**Replies:** 0\
**Last updated:** [January 24, 2023, 9:57am UTC](https://discourse.julialang.org/t/how-should-i-account-for-measurement-resolution-particularly-in-measurements-jl/93448 "2023-01-24T09:57:35Z")

</div>

Hi all! So I’m manipulating some data for my Master’s thesis. I integrated Unitful.js to keep track of the units of measure. Now I stumbled upon Measurements.jl to account for uncertainty propagation in my analysis. Acc…

---

## [Julia package dealing with propagation of uncertainty](https://discourse.julialang.org/t/julia-package-dealing-with-propagation-of-uncertainty/84472)

<div class="topic-metadata">

**Author:** [@Firstname\_Lastname](https://discourse.julialang.org/u/Firstname_Lastname)\
**Replies:** 3\
**Last updated:** [July 23, 2022, 11:39pm UTC](https://discourse.julialang.org/t/julia-package-dealing-with-propagation-of-uncertainty/84472 "2022-07-23T23:39:40Z")

</div>

In a static problem, there is uncertainty in some input, like I = a \\pm b. The output \[a function of spatial variables, i.e. f(x,y)\] is uncertain due to uncertain input. For each input sample, randomly generated, the fun…

---

## [Measurements.jl: how to zero values without eliminating the uncertainty / strange behavior with deepcopy](https://discourse.julialang.org/t/measurements-jl-how-to-zero-values-without-eliminating-the-uncertainty-strange-behavior-with-deepcopy/68221)

<div class="topic-metadata">

**Author:** [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Replies:** 22\
**Last updated:** [September 21, 2021, 1:34pm UTC](https://discourse.julialang.org/t/measurements-jl-how-to-zero-values-without-eliminating-the-uncertainty-strange-behavior-with-deepcopy/68221 "2021-09-21T13:34:10Z")

</div>

I have the following scenario: I want to propagate the uncertainty of the positions of particles in a simulation. At each time step, I compute the forces, a computation that starts with setting the forces to zero. The co…

---

## [How to improve runtime with measurements.jl?](https://discourse.julialang.org/t/how-to-improve-runtime-with-measurements-jl/67343)

<div class="topic-metadata">

**Author:** [@Cevheriferd](https://discourse.julialang.org/u/Cevheriferd)\
**Replies:** 11\
**Last updated:** [August 30, 2021, 4:35pm UTC](https://discourse.julialang.org/t/how-to-improve-runtime-with-measurements-jl/67343 "2021-08-30T16:35:19Z")

</div>

Dear all, I am using the measurements.jl package to calculate the error in my dataset. I have an array with voltage values which all have their own uncertainty. But when I want to calculate the mean of the array, it tak…

---

## [DifferentialEquations.jl and Measurements.jl](https://discourse.julialang.org/t/differentialequations-jl-and-measurements-jl/6350)

<div class="topic-metadata">

**Author:** [@giordano](https://discourse.julialang.org/u/giordano)\
**Replies:** 11\
**Last updated:** [August 26, 2021, 10:54am UTC](https://discourse.julialang.org/t/differentialequations-jl-and-measurements-jl/6350 "2021-08-26T10:54:24Z")

</div>

Today I was asked whether it was possible to solve in Julia differential equations involving numbers with uncertainties. Of course the answer is yes. What I find really amazing about Julia is that the two packages don’…

---

## [Overloading getproperty(::PyObject) - Plotting Measurements.jl errorbars with PyPlot.jl](https://discourse.julialang.org/t/overloading-getproperty-pyobject-plotting-measurements-jl-errorbars-with-pyplot-jl/63382)

<div class="topic-metadata">

**Author:** [@jlbosse](https://discourse.julialang.org/u/jlbosse)\
**Replies:** 6\
**Last updated:** [June 23, 2021, 2:37pm UTC](https://discourse.julialang.org/t/overloading-getproperty-pyobject-plotting-measurements-jl-errorbars-with-pyplot-jl/63382 "2021-06-23T14:37:10Z")

</div>

I want to automatically plot arrays of Measurement’s as scatterplots with errorbars using PyPlot.jl. For the interactive PyPlot interface adding the following method to scatter() works nicely: using PyPlot import PyPlot…

---

## [\[ANN\] MonteCarloMeasurements.jl](https://discourse.julialang.org/t/ann-montecarlomeasurements-jl/23021)

<div class="topic-metadata">

**Author:** [@baggepinnen](https://discourse.julialang.org/u/baggepinnen)\
**Replies:** 34\
**Last updated:** [January 22, 2020, 8:05am UTC](https://discourse.julialang.org/t/ann-montecarlomeasurements-jl/23021 "2020-01-22T08:05:44Z")

</div>

As a spinoff from a homework we gave in our julia course at our department, I created a small package to do nonlinear uncertainty propagation, MonteCarloMeasurements.jl. This package provides two types Particles \<: Real …

---

## [\[ANN\] Covar.jl - Propagation of Covariant Uncertainties](https://discourse.julialang.org/t/ann-covar-jl-propagation-of-covariant-uncertainties/19006)

<div class="topic-metadata">

**Author:** [@simeonschaub](https://discourse.julialang.org/u/simeonschaub)\
**Replies:** 4\
**Last updated:** [December 27, 2018, 10:25pm UTC](https://discourse.julialang.org/t/ann-covar-jl-propagation-of-covariant-uncertainties/19006 "2018-12-27T22:25:55Z")

</div>

Covar.jl is a package to handle systems with multiple uncertainties, whose correlations are described by covariance matrices. Part of the motivation for developing this package was the desire to nicely handle fit results…

---

## [ANN: Measurements.jl v0.4.0](https://discourse.julialang.org/t/ann-measurements-jl-v0-4-0/3397)

<div class="topic-metadata">

**Author:** [@giordano](https://discourse.julialang.org/u/giordano)\
**Replies:** 1\
**Last updated:** [July 10, 2017, 9:36am UTC](https://discourse.julialang.org/t/ann-measurements-jl-v0-4-0/3397 "2017-07-10T09:36:59Z")

</div>

I’m happy to announce the release of the version 0.4.0 if Measurements.jl, an error propagation package for physical measurements, carefully taking functional correlation between them into account. This library supports …
