Revisión de Tarea 2 – Planck, Wien, Raleigh-Jeans (Clase 06)
Librerías utilizadas
- Numpy – The fundamental package for scientific computing with Python
- Matplotlib – Is a Comprehensive library for creating static, animated, and interactive visualizations in Python
Funciones utilizadas para programar la ecuación
- np.arange() – Return evenly spaced values within a given interval.
- np.exp() – Calculate the exponential of all elements in the input array.
- np.pi – NumPy includes several constants
Los ejemplos de np.arange() que se tomaron de la pagina de Numpy muestran un comportamiento erroneo, ya que los valores deben ser enteros
np.arange(0, 5, 0.5, dtype=int) # Esto esta mal por que espera valores enteros
np.arange(0, 5, 1, dtype=int). # Este comando esta bien
np.arange(-3, 3, 0.5, dtype=int) # Este comando esta mal, tambien debemos colocar numeros enteros
np.arange(-3, 3, 1, dtype=int) # Este comando esta bien
URL: https://numpy.org/doc/stable/reference/generated/numpy.arange.html