Addition is hard
Pretty much always
Floating-point addition is commutative, but not associative!
(
1e20
+
¯1e20
)
+
1.5
1.5
1e20
+
(
¯1e20
+
1.5
)
0
Integer addition can overflow, so we have to be careful about the size of intermediate results.
⎕DR
x
←
100
|⍳
1e3
83
⎕DR
+
/
x
323