Problem 44741. You are constantly moving at a speed v faster than your twin brother. How long does it take before you become 1s younger than him according to the theory of relativity?
Solution Stats
Problem Comments
-
2 Comments
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.
Problem Recent Solvers4
Suggested Problems
-
Determine whether a vector is monotonically increasing
16653 Solvers
-
Return the largest number that is adjacent to a zero
4666 Solvers
-
3081 Solvers
-
1572 Solvers
-
429 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!