Problem 361. Energy of a photon
Solution Stats
Problem Comments
-
10 Comments
The test suite is just silly/broken.
I agree. I think the test suite needs to be modified.
it looks fine to me (it sets some bounds without giving away the actual value, perhaps I am missing something?)
good
Improve the test suite..
The top solutions are not even solving the actual problem.
Test suite is very badly made. And the problem is pointless. I hope people who post problems think a little a bit before creating a new problem.
Photon energy calculation is well known equation to the person who learned physics. This problem using not "J" but "eV" as the unit. Take care!
E=hf. The test cases are just wrong.
The test case should be updatet, it does not account for numerical differences. Also why not use a more accurate value for the Planck constant? As it is now one hase to reverse engineer the Planck constant from the test cases and then use that one. And then it even fails the test case...
Solution Comments
Show commentsProblem Recent Solvers1403
Suggested Problems
-
Find the largest value in the 3D matrix
1511 Solvers
-
Set the array elements whose value is 13 to 0
1362 Solvers
-
Replace multiples of 5 with NaN
439 Solvers
-
424 Solvers
-
String Array Basics, Part 1: Convert Cell Array to String Array; No Missing Values
1476 Solvers
More from this Author100
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!