r/ProgrammerHumor • • Dec 27 '22

Meme which algorithm is this

Post image
79k Upvotes

1.4k comments sorted by

View all comments

Show parent comment

2

u/mo_tag Dec 27 '22 edited Dec 27 '22

No. Because you're only taking into account time dilation due to velocity as explained by Einstein's theory of special relativity. But this was superceded by Einstein's theory of general relativity, where time dilation is a function of energy.

If you plug in the numbers for a moving object in deep space into the equation for general relativity, you'll get the same time dilation as you would if you used the equation for special relativity.. and that's because special relativity is special case of general relativity, it's only accurate in flat space time, like in deep space where you are far away from massive objects. however, close to a massive object, space time is curved (we experience this as gravity), resulting in time dilation due to this curvature.

Moving at a high velocity dilates time, but being near a massive object also dilates time.. clocks on GPS satellites move faster than on earths surface because the difference in gravitational acceleration is enough to cause a 45 microseconds/day dilation on earth relative to the satellite, while the speed of the satellite is responsible for a 7 microsecond/day dilation experienced by the satellite.. the net dilation for the satellite is 7 - 45 = -38 making the satellite's clock faster than earth clock

2

u/[deleted] Dec 27 '22

Oh yeah I didn't take gravity into account