this post was submitted on 30 Aug 2026
791 points (98.3% liked)
Programmer Humor
33044 readers
2187 users here now
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Rules
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
The physicist’s answer would be correct anywhere, no matter the temperature or density of the fluid.
Supposing that the measurements with and without the sphere are taken under identical circumstances. But you deserve the upvote either way.
Assuming the time between submersion and observation is greater than zero, increasing temperatures above boiling would give increasing error.
Conversely the physicist may get other error at/near freezing.
And yet another option is the fluid being above the Ball's melting and/or boiling point, assuming changes in density with phase change.
They just said the ball was red, they didn’t say why…
All of which the physicist can trivially account for, control and variable test around, should the requested question be updated to require it.
The requested question did not include "In all possible scenarios", thus determining the volume of the sphere via physics calculation at the most average of conditions, is the most correct valid solution, absent further requirement parameters.
You're right in terms of grading a student's homework or whatever.
In research/publication/career these assumptions must be stated unless given.
But I was responding to:
Which includes non-standard conditions.
Interestingly, the physicist's answer would always be correct, but not always consistent.
If the sphere is compressible, then air pressure will slightly affect its volume. And unless the thermal expansion rate of the sphere is zero, the amount of fluid displaced will also vary with temperature.
However, even if the physicist gets different answers in different environments, it's always still a correct answer, because they correctly measured the volume of the sphere at that time.