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

6 lines
103 B
Plaintext

x1 = 100 ± 1.1;
y1 = 50 ± 1.2;
x2 = 200 ± 2.2;
y2 = 100 ± 2.3;
d = Sqrt[(x1 - x2)^2 + (y1 - y2)^2]