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...

SI (International System of Units) base plus vector and scalar quantities.

Table of contents:

1. vector and scalar quantities.

2.SI base quantities and their corresponding units


Scalars and Vectors

  • Scalar: has magnitude only, cannot have direction

    e.g. speed, energy, power, work, mass, distance

  • Vector: has magnitude and direction

    e.g. displacement, acceleration, force, velocity momentum, weight, electric field strength

Both scalars and vectors have magnitude and unit.


A force vector can be split into its vertical and horizontal components, which are independent on each other.

Pythagoras theorem (2+2=2) and vector parallelograms can be used to add coplanar vectors.


  • For the horizontal componentFx = Fcosθ
  • For the vertical componentFy = Fsinθ

|   **Vector Quantities**   |   **Scalar Quantities**   |

|---------------------------|---------------------------|

| Displacement              | Distance                  |

| Velocity                  | Speed                     |

| Acceleration              | Mass                      |

| Force                     | Temperature               |

| Momentum                  | Energy                    |

| Angular Velocity          | Volume                    |

| Torque                    | Time                      |

| Electric Field Strength   | Electric Charge           |

| Magnetic Field Strength   | Electric Potential        |

| Displacement Vector       | Power                     |

| Acceleration Vector       |                           |


 Here's a mnemonic to remember vector quantities and scalar quantities:

"DEVA FAME TV"

Explanation:

- D: Displacement
- E: Electric Field Strength
- V: Velocity
- A: Acceleration
- F: Force
- A: Angular Velocity
- M: Momentum
- E: Electric Potential
- T: Torque
- V: (Additional Vectors such as Acceleration Vector)

**"MATES VET P"**

Each letter in the mnemonic represents one of the scalar quantities:

- M for Mass
- T for Time
- E for Energy
- A for Area
- S for Speed
- V for Volume
- E for Electric Charge
- T for Temperature
- P for Power
- E for Electric Potential

SI Base Quantities


  • There is a seemingly endless number of units in Physics
  • These can all be reduced to six base units from which every other unit can be derived
  • These six units are referred to as the SI Base Units; this is the only system of measurement that is officially used in almost every country around the world

| SI Base Quantity    | SI Unit              |

|---------------|----------------------|

| Length             | meter (m)            |

| Mass               | kilogram (kg)        |

| Time               | second (s)           |

| Electric Current   | ampere (A)           |

| Temperature        | kelvin (K)           |

| Amount of Substance| mole (mol)           |

| Luminous Intensity | candela (cd)         |


 Here's a mnemonic to remember the SI base quantities and their respective units:

"**My Kind Aunt Makes Tasty Lemon Cake**"

Each initial word corresponds to the first letter of the SI base quantity, followed by the first letter of its unit:

- My for Meter (Length)
- Kind for Kilogram (Mass)
- Aunt for Ampere (Electric Current)
- Makes for Mole (Amount of Substance)
- Tasty for Time (Time)
- Lemon for Luminous Intensity (Candela)
- Cake for Candela (Luminous Intensity)
  
This mnemonic can help you remember the SI base quantities and their units in the order provided in the table.

Derived Units


  • To deduce the base units, it is necessary to use the definition of the quantity
  • The Newton (N), the unit of force, is defined by the equation:
    • Force = mass × acceleration
    • N = kg × m s–2 = kg m s–2
    • Therefore, the Newton (N) in SI base units is kg m s–2

  • The Joule (J), the unit of energy, is defined by the equation:
    • Energy = ½ × mass × velocity2
    • J = kg × (m s–1)2 = kg m2 s–2
    • Therefore, the Joule (J) in SI base units is kg m2 s–2

  • The Pascal (Pa), the unit of pressure, is defined by the equation:
    • Pressure = force ÷ area
    • Pa = N ÷ m2 = (kg m s–2) ÷ m2 = kg m–1 s–2
    • Therefore, the Pascal (Pa) in SI base units is kg m–1 s–2


Comments

Popular posts from this blog

Thinking in React: Relatable Scenarios for Building User Interfaces

Underrated step for logic building in programming.

Assess whether or not mobile phones have improved human communication.