Lorentz7

Plot the Lorentz factor against velocity
import matplotlib.pyplot as plt import numpy as np fig = plt.figure ax = fig.add_subplot(1, 1, 1) major_ticks = np.arange(0, 101, 5) minor_ticks = np.arange(0, 101, 1) ax.set_xticks(minor_ticks, minor=True) ax.set_yticks(minor_ticks, minor=True) ax.grid(which='minor', alpha=0.3) ax.grid(which='major', alpha=0.8) x = np.arange(0.7, 1, 0.001) y = 1/(np.sqrt((1-x**2))) plt.plot(x*100, y) plt.title("Lorentz Factor") plt.xlabel("Real velocity (percentage of c)") plt.ylabel("Apparent velocity (multiple of c)") plt.show
 * 1) !/usr/bin/python3