You are moving at a speed of v_in (km/h) relative to your twin brother of the exact (even in seconds) same age.
Define: gam = 1/sqrt(1-v^2/c^2) where v is the relative speed in m/s and c is the speed of light in m/s.
According to the theory of relativity (specifically time dilation), a time interval dt for your twin brother equals a time interval of gam*dt for you. For how long must you travel, in years, with the speed v_in in order to become 1 second younger than your twin brother?
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers4
Suggested Problems
-
Return unique values without sorting
999 Solvers
-
1181 Solvers
-
Create a matrix X, where each column is a shifted copy of the vector v
221 Solvers
-
Unique values without using UNIQUE function
440 Solvers
-
107 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
Had to cheat to figure out what you were doing. You've got c equal to the speed of light in a vacuum (299792458 m/sec), which is good. However, you're dividing by 336 days per year (60 sec * 60 min * 24 hours * 7 days * 4 weeks * 12 months) instead of either 365 or 365.25 if you want to include leap years.
It's a good problem, but if you're using specific values for a conversion factor that's important to solving the problem, please make sure you spell it out in the problem description.
On top of what @James said, you also have to multiply by 1.6 instead of dividing by 3.6 to convert the supplied speed v_in from km/h to m/s in order to pass the test suite.