Skip to content

Instantly share code, notes, and snippets.

@rsnemmen
rsnemmen / uncertainty.py
Created October 23, 2014 21:43
Doing statistical error propagation with Python
import uncertainties as unc
import uncertainties.unumpy as unumpy
import numpy
import nemmen
# Defines x and y
x=numpy.linspace(0,10,50)
y=numpy.linspace(15,20,50)
# Defines the error arrays, values follow a normal distribution