Skip to content

MinisterLabs/Basic-Physics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

The Coulomb's Law

MIT License · C++ · Physics

Coulomb's law, is an experimental law of physics that calculates the amount of force between two electrically charged particles at rest.

+--------Formula--------+
|                       |
|          |q1| x |q2|  |
| |F| = ke -----------  |
|              r^2      |
+-----------------------+

ke      = Coulomb's constant, the value is: 8.9875 x 10^9 Nm^2/C^2
q1 & q2 = Electric charge (C)
r       = Distance between the charges (m^2)

To-Do

  • Redesain the UI for better readability
  • Add error handler for std::cin and input value
  • Add comments beside functions, variables,classes, etc.
  • Add output handler with set precision to output F (N)
  • Code optimation

About

Repository for basic Physics courses in C++

Topics

Resources

License

Stars

Watchers

Forks

Languages