Skip to content

Commit

Permalink
Release v1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
giordano committed Sep 25, 2018
1 parent 745b690 commit edb299a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
6 changes: 3 additions & 3 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
History of Measurements.jl
==========================

v1.0.2 (2018-??-??)
v1.0.2 (2018-09-26)
-------------------

### Bug Fixes

* Fix converion of a `Measurement` object to an `Int`. This fixes also power of
complex measurements.
* We now ensure that `Measurement{T}(x)` returns a `Measurement{T}`
* Ensure that `Measurement{T}(x)` returns a `Measurement{T}`
([#24](https://github.com/JuliaPhysics/Measurements.jl/pull/24)). Until Julia
0.6 this was done automatically, now we have to test this manually.
0.6 this was done automatically, now we have to test this explicitly.

v1.0.1 (2018-09-07)
-------------------
Expand Down
12 changes: 7 additions & 5 deletions docs/src/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -648,15 +648,17 @@ smart enough to support out-of-the-box integrand functions that return
arbitrary types, including `Measurement`:

```jldoctest
julia> QuadGK.quadgk(x -> exp(x / (4.73 ± 0.01)), 1, 7)
(14.933307243306032 ± 0.009999988180463411, 0.0 ± 0.010017961523508253)
julia> a = 4.71 ± 0.01;
julia> quadgk(x -> exp(x / a), 1, 7)[1]
14.995360291133252 ± 0.031231329202914222
```

`Measurements.jl` pushes the capabilities of `quadgk` further by
supporting also `Measurement` objects as endpoints:

```jldoctest
julia> QuadGK.quadgk(cos, 1.19 ± 0.02, 8.37 ± 0.05)
julia> quadgk(cos, 1.19 ± 0.02, 8.37 ± 0.05)
(-0.05857827689796702 ± 0.02576650561689427, 2.547162480937004e-11)
```

Expand All @@ -673,15 +675,15 @@ Also with `quadgk` correlation is properly taken into account:
julia> a = 6.42 ± 0.03
6.42 ± 0.03
julia> QuadGK.quadgk(sin, -a, a)
julia> quadgk(sin, -a, a)
(2.484178227707412e-17 ± 0.0, 0.0)
```

If instead the two endpoints have, by chance, the same nominal value and
uncertainty but are not correlated:

```jldoctest
julia> QuadGK.quadgk(sin, -6.42 ± 0.03, 6.42 ± 0.03)
julia> quadgk(sin, -6.42 ± 0.03, 6.42 ± 0.03)
(2.484178227707412e-17 ± 0.005786464233000303, 0.0)
```

Expand Down

0 comments on commit edb299a

Please sign in to comment.