Numeric error propagation: Difference between revisions

m
Line 1,604:
{{Out}}
<pre>111.803 ± 2.48717</pre>
===Native implementation===
<lang Mathematica>x1 = Around[100, 1.1];
y1 = Around[50, 1.2];
x2 = Around[200, 2.2];
y2 = Around[100, 2.3];
d = Sqrt[(x1 - x2)^2 + (y1 - y2)^2]</lang>
{{out}}
<pre>111.8\[PlusMinus]2.5</pre>
 
=={{header|Nim}}==
1,111

edits