Physika
This page is meant to be a comprehensive consolidation of various scientific topics I have learnt and been learning, presented in a simple, cohesive manner. It will cover areas of mechanics, quantum mechanics, optics, photonics, electromagnetics, field theory, relativity, gravity, as well as details from other topics depending on the relevance. We will try to blur disciplinary boundaries here, integrate and correlate learnings as much as possible while embracing an open approach starting from basic fundamentals.
It is physically impossible to cover every topic in the realm of science of course, but the goal is to serve as a personal repository as well as to introduce various topics sequentially, so that one can venture into more depth once the fundamentals are understood. I will include references where applicable and write code, simulations, and plots for easy elucidation and my own learning. Thank you for your patience, let’s begin! :)
1. Atomic beginnings
1.1 The Bohr model
1.2 Hydrogen
The hydrogen atom: electron \(\color{blue}{-e}\), proton \(\color{blue}{+e}\), Coulomb potential.
Energy scales as \(1/n^2\) (eq. 1.1).
Code
import math
OSCILLATOR_X_RANGE = (0.0, 60.0)
OSCILLATOR_Y_RANGE = (-1.25, 1.25)
OSCILLATOR_X_AXIS_TITLE = "Time (dimensionless), t"
OSCILLATOR_Y_AXIS_TITLE = "Displacement (dimensionless), x"
def run_calc_slider(gamma, t_max=30.0):
n = 300
dt = t_max / max(n - 1, 1)
t = [i * dt for i in range(n)]
if gamma < 1.0:
wd = math.sqrt(1.0 - gamma**2)
y = [math.exp(-gamma * ti) * math.cos(wd * ti) for ti in t]
elif abs(gamma - 1.0) < 1e-9:
y = [math.exp(-ti) * (1.0 + ti) for ti in t]
else:
s = math.sqrt(gamma**2 - 1.0)
y = [math.exp(-gamma * ti) * math.cosh(s * ti) for ti in t]
ep = [math.exp(-gamma * ti) for ti in t]
en = [-math.exp(-gamma * ti) for ti in t]
return t, y, ep, en, OSCILLATOR_X_RANGE, OSCILLATOR_Y_RANGE, OSCILLATOR_X_AXIS_TITLE, OSCILLATOR_Y_AXIS_TITLE
