Problem 361. Energy of a photon
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?)
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.
Solution CommentsShow comments
Problem Recent Solvers1365
Make the vector [1 2 3 4 5 6 7 8 9 10]
Remove any row in which a NaN appears
Sum of diagonal of a square matrix
Find the next Fibonacci number
More from this Author100
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!