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
-
55 Solvers
-
171 Solvers
-
Cody Computer Part 1 - Guess the system font used by uipanel
68 Solvers
-
Find the largest value in the 3D matrix
1356 Solvers
-
Find files with extension ext in the current directory
32 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!