Problem 49077. Velocity Conversion
Solution Stats
Problem Comments
-
6 Comments
Constant 1.60934
With problems from this user, you have to first reverse engineer the conversion constant, because it has more digits than the one google proposes.
The test cases for this problem are stupid. Even when using the real conversion factors and rounding to 4 decimal places, the test cases are still off by 0.001 and 0.002. Realistically there should a be a buffer of at least 0.01.
Why can't I pass the first test ?
The statute mile was standardised between the Commonwealth of Nations and the United States by an international agreement in 1959, when it was formally redefined with respect to SI units as exactly 1,609.344 metres.
DO NOT EVEN BOTHER WITH THIS GUY'S PROBLEM SET
He is basing all of these "conversion" calculations on dodgy conversion factors, rather than unit cancellation. For example, converting square feet to square meters *should be* squaring the conversion factor between feet and meters and multiplying by that, rather than memorizing another different magic number for area. What about volume? Do we have to memorize another magic number for volume, and have it be off by precisely as much as this guy expects it to be off by? Besides, even if the goal of unit conversion in this guy's mind is to memorize a bunch of different multiplication factors, they won't be right because he insists on exact equality rather than within a tolerance.
Instead of this nonsense, go do a problem set written by someone who understands the material and understands how to do unit tests
/rant
Solution Comments
Show commentsProblem Recent Solvers1190
Suggested Problems
-
Project Euler: Problem 2, Sum of even Fibonacci
2477 Solvers
-
Check that number is whole number
4507 Solvers
-
464 Solvers
-
Return fibonacci sequence do not use loop and condition
685 Solvers
-
368 Solvers
More from this Author180
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!