- add
-d:mmErrPrec
compile time option to adjust the precision with which values are printed (PR #20) - add
+/
binary operator, which computes the weighted mean between two measurement values (PR #20) - add
mean
procedure taking multiple measurements or anopenArray
of values and return the weighted mean of all of them (PR #20) - support
ln
forMeasurement
(was an oversight it was missing)
- add equality of Measurements with “different” types (if aliases)
- improve concept definition, add
to
for numbers - fix
^
,**
involving aUnitLess
and regularfloat
, due to thedistinct
nature of the former relative to the latter - force Nim 1.6 Measurement type to require
FloatLike
- fix division involving integer literals
- add some more
unchained
related tests
- fix import of
measuremancer
intCligenParsing
to use local path
- add
merge
argument topretty
to allow merging the uncertaintyB
with the valueA
asA(B)
when usingcligen
for printing
- move
toFloat
definitions above==
(where they are used, PR #13 by @metagn) - replace erroneously used
bind
bymixin
- add
-d:useCligen
CT option to allow usingcligen/fmtUncertain
for the uncertainty formatting (PR #12) - add
+-
helper as a non-unicode version of±
(PR #12) - export
val
,uncer
fields ofMeasurement
- fix regression that disabled ability to use division of int literals
with a
Measurement
- export
to
procedure (used to convert inner type of aMeasurement
) - fix
**
,^
for two Measurements - allow to disable printing of unicode symbols for string repr of
Measurement
by compiling with-d:noUnicode
- fix issue #6 to allow
measurement
procedure to construct correct type for given types other thanfloat
- fix division of a literal with a measurement
- fix power math operation for different argument types, including
fixing issue #7
- adds a new private submodule for a helper macro to generate `power` calls for static integers (including negative)
- change import path in test file to relative import
- add basic tests for arithmetic
- add all trigonometric functions supported by
std/math
- add CI
- add docs
- fix division operation of measurements of units like
unchained
units
- initial working version of the library. Supports basic math of measurements and some trigonometric functions.