Underrated step for logic building in programming.

Image
Logic building is a crucial and complex skill in programming. In essence, it is ability to come-up with solution of coding problem and write precise instructions ( or code) that a computer can execute autonomously. This skill requires aligning your thought process with computer and its capabilities. And running through code some-what abstractly to know and predict the behavior of code before it is executed. To be able to do this, one essential step that many beginner programmers overlook is performing dry runs. Understanding Dry Runs The concept of a dry run in programming is straightforward: can you mentally execute your code and predict its output without actually running it on a computer? While this seems simple, it is a challenging task. Typically, we are taught to write code, run it, and observe the output. This cycle is essential because code needs to run to be validated. However, if you rely solely on running your code to understand its behavior, you may struggle with building

18.1.5 Electric Force Between Two Point Charges

 Coulomb's Law

  • All charged particles produce an electric field around it
    • This field exerts a force on any other charged particle within range
  • The electrostatic force between two charges is defined by Coulomb’s Law
    • Recall that the charge of a uniform spherical conductor can be considered as a point charge at its centre
  • Coulomb’s Law states that:

The electrostatic force between two point charges is proportional to the product of the charges and inversely proportional to the square of their separation

  • The Coulomb equation is defined as:

E = Q1Q2 / 4πε0r^2

  • Where:
    • FE = electrostatic force between two charges (N)
    • Q1and Q2 = two point charges (C)
    • ε0 = permittivity of free space
    • r = distance between the centre of the charges (m)
  • The 1/r^2 relation is called the inverse square law
    • This means that when a charge is twice as far as away from another, the electrostatic force between them reduces by (½)^2 = ¼
  • If there is a positive and negative charge, then the electrostatic force is negative, this can be interpreted as an attractive force
  • If the charges are the same, the electrostatic force is positive, this can be interpreted as a repulsive force
  • Since uniformly charged spheres can be considered as point charges, Coulomb’s law can be applied to find the electrostatic force between them as long as the separation is taken from the centre of both spheres

Comments

Popular posts from this blog

Building JavaScript Array Methods from Scratch in 2024 - Easy tutorial for beginners # 1

Build eisenhower matrix with React, firebase and neumorphism ui . (Part one)

Creating a Dynamic Search Bar in React: A Step-by-Step Tutorial