RosettaCodeData/Task/Numeric-error-propagation/Mathematica/numeric-error-propagation-3...

6 lines
127 B
Plaintext

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]