Problem 361. Energy of a photon
Solution Stats
Problem Comments
-
10 Comments
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 Solvers1419
Suggested Problems
-
Replace NaNs with the number that appears to its left in the row.
3012 Solvers
-
1214 Solvers
-
Project Euler: Problem 2, Sum of even Fibonacci
2500 Solvers
-
First non-zero element in each column
870 Solvers
-
917 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!