## UncValue.jl

Simple class to evaluate the uncertainty for complex or very long calculations given the initial values together with its uncertainty.
Author Physics-Simulations
Popularity
0 Stars
Updated Last
2 Years Ago
Started In
September 2020

# Uncertainty-Value

Simple class to evaluate the uncertainty for complex or very long calculations given the initial values together with its uncertainty.

# How-To

## Installation

The recommended way to install UncValue in your computer is via `Pkg` by writting

```using Pkg

## Usage

The way it works is simple, first import the script as

`using UncValue`

then initialise your `Value` variables (numbers, lists, matrices...) as

```pi = Value(3.14159, 0.00011) # number variable 3.14159 +/- 0.00011
A = [pi; Value(2.718, 0.036); Value(1.61803398875, 29e-11)] # array with 3 elements
M = Value(rand(3,5), rand(3,5)*0.056) # 3x5 matrix```
• `pi` is just a number variable with uncertainty
• `A` is a list of values, each one with each own uncertainty
• `M` is a 3x5 value matrix (not a matrix of values) where the uncertainty is separated from the value, so this class only works as a container for keeping them together but some operations will not work properly (like multiplication). To initialize the matrix of values correctly we should do it as the list.

Perform any operation you want between Value(s):

• Binary operators: `+`, `-`, `*`, `/`, `\`, `^`...
• Unary operators: `abs`, `exp` (base 2, 10 and general), `log` (base 2, 10 and general), `sqrt`, `cbrt`, trigonometric and inverse function, hyperbolic and inverse functions...
• Comparison: `>=`, `>`, `==`, `!=`, `<`, `<=`...

A complete list of compateble operations can be found in the Julia documentation.

# Contributors

``````  Copyright 2020 Physics-Simulations