Python Editor
Κώδικας Python
import matplotlib.pyplot as plt a = int(input('Δώσε το α ')) b = int(input('Δώσε το β ')) c = int(input('Δώσε το γ ')) xs = [x / 10 for x in range(-50, 51)] ys = [a*x**2 + b*x + c for x in xs] plt.figure() plt.axhline(0, color="black", linewidth=0.8) plt.plot(xs, ys) plt.title(f"y = {a}x² + {b}x + {c}") plt.xlabel("x") plt.ylabel("y") plt.show()
▶️
Run
⏹
Break
♻️
Επαναφορά
📋
Αντιγραφή
📥
Επικόλληση
Φόρτωση...
Έξοδος προγράμματος (stdout)
stdin:
OK
Γραφικά (plots)
💾
Αποθήκευση γραφικού
Μηνύματα λάθους (stderr)