import numpy as npimport matplotlib.pyplot as pltimport tkinter as tkfrom tkinter import simpledialog# 절대값 함수 그래프를 그리는 함수def plot_absolute_value(a, b, c): x = np.linspace(-10, 10, 400) y = a * np.abs(x - b) + c plt.figure() plt.plot(x, y, label=f"{a} * |x - {b}| + {c}") plt.title(f"y = {a} * |x - {b}| + {c}") plt.xlabel("x") plt.ylabel("y") plt.grid(True) plt.legend() ..