Hello, I am making a plot to contrast Plank
s law with Wein
s and Rayleigh-Jeans` versions. I am currently having an issue with the Rayleigh-Jeans plot (just showing up as an L), this is an assigned problem to refine coding skills in a physics class, I have provided my code thus far.import matplotlib.pyplot as ply import numpy as np import math #Defining constants h = 6.6261 * 10 ** -34 k = 1.3807 * 10 ** -23 c = 2.9979 * 10 ** 8 T = 30000 wavelengths = np.linspace(1, 800, 1600) RJ = wavelengths.copy() PL = wavelengths.copy() WN = wavelengths.copy() #Deining the functions of interest def RJFunc(q): for n in range(len(q)): q[n] = ((2 * k * c * T) / ((q[n] * 10 ** -9) ** 4)) def PLFunc(b): for m in range(len(b)): b[m] = ((2 * h * c **2) / (((b[m] * 10 ** -9) ** 5) * (math.exp((h * c) / ((b[m] * 10 ** -9) * k * T)) -1))) def WNFunc(d): for l in range(len(d)): d[l] = ((2 * h * c **2) / (((d[l] * 10 ** -9) ** 5) * (math.exp((h * c) / ((d[l] * 10 ** -9) * k * T))))) RJFunc(RJ) PLFunc(PL) WNFunc(WN) #Plotting these functions ply.plot(wavelengths, PL, wavelengths, WN, wavelengths, RJ) ply.show()Thank you!