miércoles, 19 de agosto de 2026

Reverse Engineering: Graphs

 #!/usr/bin/env python3

# -*- coding: utf-8 -*-

"""

Created on Wed Aug 12 15:47:14 2026


@author: -

"""


from matplotlib import pyplot as plt #graph library


x = [-1.5,-1,-0.5,0,0.5,1,1.5]


y = [i**2 - 1 for i in x]


plt.plot(x,y)


plt.show()

No hay comentarios:

Publicar un comentario