Problem 46968. Electric Potential Energy
It seems to me that the answers in the test suite are incorrect. They were calculated with an R in the denominator rather than R^2.
It seems to me that William is right...
It seems the problem is actually requesting the electric potential energy instead of the eletric force. Please, fix the test suite or change the name of the problem and its description. https://sciencing.com/calculate-electric-potential-energy-7821281.html
Thank you for pointing out the error!
As @Rafael pointed out, I will adjust the problem description accordingly.
Solution CommentsShow comments
Problem Recent Solvers13
Back to basics 25 - Valid variable names
Change the sign of even index entries of the reversed vector
Moving average (variable kernel length)
More from this Author30
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!