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.
Hard coded solutions are now not allowed.
Triangle Numbers Below N
Insert zeros into vector
factor to number
~~~~~~~ WAVE ~~~~~~~~~
03 - Matrix Variables 2
Find the treasures in MATLAB Central and discover how the community can help you!
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office