You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the package defines error propagation rules for known functions, but it would be great to allow for calculation of uncertainties of arbitrary functions.
This should be possible with a macro like
@macronamefunction(4.3±0.4)
This calculates the value of function(4.3) and the associated approximated uncertainty using numerical derivatives or so, and finally construct the Measurement object function(4.3) ± uncertainty.
The text was updated successfully, but these errors were encountered:
Limitation: function must take only one real argument.
The derivative is calculated using Calculus package. We need numerical
derivatives because we want to support any possible function, not only
those implemented in Julia, so I don’t think automatic differentiation
is an option in this case.
Fixes issue #4.
Currently the package defines error propagation rules for known functions, but it would be great to allow for calculation of uncertainties of arbitrary functions.
This should be possible with a macro like
This calculates the value of
function(4.3)
and the associated approximated uncertainty using numerical derivatives or so, and finally construct theMeasurement
objectfunction(4.3) ± uncertainty
.The text was updated successfully, but these errors were encountered: