Update and rename Lib/operator.py to Lib/import matplotlib.pyplot as … #131572
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
…plt import numpy as np # Datos para 0° a 360° angulos = np.array([0, 30, 45, 60, 90, 120, 135, 150, 180, 210, 225, 240, 270, 300, 315, 330, 360]) radianes = np.array([0, np.pi/6, np.pi/4, np.pi/3, np.pi/2, 2np.pi/3, 3np.pi/4, 5np.pi/6, np.pi, 7np.pi/6, 5np.pi/4, 4np.pi/3, 3np.pi/2, 5np.pi/3, 7np.pi/4, 11np.pi/6, 2*np.pi]) seno = np.sin(radianes) # Gráfica plt.plot(angulos, seno, marker='o') plt.title('Gráfica de la función seno (0° a 360°)') plt.xlabel('Ángulo en grados') plt.ylabel('sen(X)') plt.grid(True) plt.show()