Problem 46968. Electric Potential Energy
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
Show
1 older comment
Nikolaos Nikolaou
on 20 Oct 2020
It seems to me that William is right...
Rafael S.T. Vieira
on 20 Oct 2020
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
Dyuman Joshi
on 21 Oct 2020
Thank you for pointing out the error!
As @Rafael pointed out, I will adjust the problem description accordingly.
Solution Comments
Show commentsProblem Recent Solvers14
Suggested Problems
-
Renaming a field in a structure array
1549 Solvers
-
Project Euler: Problem 10, Sum of Primes
1897 Solvers
-
498 Solvers
-
431 Solvers
-
749 Solvers
More from this Author31
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!