This work aims to applying the concept of NumPy array and Matplotlib for solving physics problems by Python 3 and Jupyter Notebook. There are some solutions for tasks in this Python code.
Special relativity is the area of physics deling with incredibly large velocities. In special relativity, the momentum p of an object with velocity v(in m/s), and mass m (in kg) is given as.
where c
Rydberg's constant
where,
-
$m_{e}=9.109 \times 10^{-31}$ m is the mass of an electron -
$e=1.602 \times 10^{-19}$ C is the charge of a proton (also called the elementary charge) -
$\varepsilon_{0}=8.854 \times 10^{-12}C V^{-1} m^{-1}$ is the electrical constant - h = 6.626
$\times$ $10^{-34}$ J s is Planck's constant - c = 3
$\times$ $10^{8}$ m/s is the speed of light.
write the program which assigns the values of the physical constants to variables, and use the variables to calculate the value of Rydberg's constant.
A ball is dropped straight down from a cliff with height
where a is the acceleration (in
Write a program which finds out how long time
A ball is dropped from rest at a height of h = 100 m. The time intervals is 0.1 s up to 5 s. The constant gravitational acceleration g = 9.81
- Free Fall Motion
-
Impact time (when y(t)=0)
$t_{ground}=\sqrt{\frac{2h_{0}}{g}}$ -
Initial Velocity at the ground
$v_{ground}=gt_{ground}$ -
Position
$y(t)=h_{0}-\frac{g}{t^{2}}$
-
In classical physics, we define the momentum
A satellite with mass m = 1200 kg is trapped in the gravity of a black hole. It accelerates quickly from velocity
(a) write a program which prints a nicely formatted table to the terminal, containing the speed of the satellite in one column, and the momentum of the satellite in the other. Use time-intervals of
Hint: Use scientific notation '%e' when printing the values, to avoid incredibly large floats. Alternatively, '%g', which picks the best notation for you. Try to limit the number of decimals to a reasonable number.
In classical physics, we define the momentum
A satellite with mass m = 1200 kg is trapped in the gravity of a black hole. It accelerates quickly from velocity
In exercise about - Correct Einstein's mistakes, we saw the momentum of an object is defined in special relative;y, which dealswith physics at very large velocities. We defines the momentum as
This is actual momentum of any object, but the classical version in exercise a) is a good approximation at "small'velocities. Expand your program such that it prints a table with three columns, the third one containing the momentum ad defined in special relativity.