# AroundReplace

AroundReplace[expr,{s1Around[x1,δ1],s2Around[x2,δ2],}]

propagates uncertainty in expr by replacing all occurrences of si by Around[xi,δi].

AroundReplace[expr,rules,n]

propagates uncertainty in expr using a series expansion to order n.

# Details • In AroundReplace[expr,{s1->Around[xi,],}], each occurrence of a given si in expr is assumed to represent the same value, but different replacements Around[xi,] are assumed to be uncorrelated.
• In AroundReplace[expr,rules], rules can contain scalar rules of the form sAround[] for an uncorrelated variable s, or vector rules of the form {s,r,}VectorAround[] for correlated variables s,r,.
• In AroundReplace[f[s,r],rules], uncertainty propagation is based on the formula
• δf = • In AroundReplace[f[s,r],rules,n], uncertainty propagation involves derivatives up to order n.
• For n=1, the result of AroundReplace[f[s],sAround[x,δ],n] is centered at f[x], but for higher n orders the central value may depend on δ as well.

# Examples

open all close all

## Basic Examples(2)

Perform an operation with Around objects:

 In:= Out= Converting x into two uncorrelated variables makes the result have smaller uncertainty:

 In:= Out= Specify an intermediate level of correlation with VectorAround:

 In:= Out= By default, uncertainty propagation uses first-order expansions:

 In:= Out= Use a higher-order expansion to obtain better results:

 In:= Out= ## Properties & Relations(1)

Introduced in 2019
(12.0)