Calculate the magnitude of Electric potential energy between two given charges [q1, q2] with spatial coordinates in the form [x1 y1; x2 y2].
Take the value of absolute dielectric permittivity 1e-9/(36pi).
All units are SI units.
Use of if-else is prohibited to prevent hard-coded solutions.
Solution Stats
Problem Comments
4 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers14
Suggested Problems
-
The Goldbach Conjecture, Part 2
2413 Solvers
-
1792 Solvers
-
Find the largest value in the 3D matrix
1660 Solvers
-
314 Solvers
-
3209 Solvers
More from this Author44
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
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.