I have three rectangles of the same size:
s1 = Rectangle[{-(b/2), -(h/2)}, {b/2, h/2}]
s2 = Rectangle[{-(h/2), h/2}, {h/2, h/2 + b}]
s3 = Rectangle[{-(h/2), -(h/2)}, {h/2, -(h/2) - b}]
which I combine into a region:
r = RegionUnion[Region /@ {s1, s2, s3}]
This is a simple symmetrical I-beam-ish shape. When I integrate this:
Simplify[Integrate[1, {x, y} \[Element] r], {0 < b < h}]
I get 2 bh. I should get 3 bh. Also,
Simplify[Integrate[y, {x, y} \[Element] r], {0 < b < h}]
should be zero, since it's symmetric about the x-axis. Mathematica gives me:
1/2 b h (b + h)
Any ideas? Mathematica 12.0.0.0