Skip to main content

Propagate the uncertainty of multiple values

Project description

BlackStyle

Propagate the uncertainties of your variables in simple expressions.

Examples

import propagate_uncertainties as pu

pu.add(x=1, x_au=0.1, y=4, y_au=0.1)
(5, 0.14142135623730953)

pu.multiply(x=2, x_au=0.2, y=3, y_au=0.1)
(6, 0.632455532033676)

pu.divide(x=5.0, x_au=1.0, y=2.0, y_au=0.1)
(2.5, 0.5153882032022076)

pu.sqrt(x=4, x_au=0.1)
(2.0, 0.025)

Functions

  • add(x,y)

  • multiply(x,y)

  • divide(x,y)

  • hypot(x,y)

  • sqrt(x)

  • max([x0, x1, x2, ... xN])

  • sum([x0, x1, x2, ... xN])

  • sum_axis0(X)

  • integrate(f=[y0, y1, y2, ... yN], x_bin_edges=[x0, x1, x2, ... x(N+1)])

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page