Physics, Python, Python Programming, Coding, Programming.
this: import numpy as np import matplotlib.pyplot as plt # Lattice constants a = 1.42 # Carbon-carbon bond length in Ångström a1 = np.array([a, 0]) a2 = np.array([a/2, a*np.sqrt(3)/2]) # Nearest-neighbor vectors delta1 = a1 / 2 delta2 = (a1 + a2) / 2 delta3 = (a2 - a1) / 2 def