import numpy as npimport matplotlib.pyplot as pltfrom matplotlib.widgets import Slider# 초기값 설정a_init = 1b_init = 0c_init = 0d_init = 0# 3차 함수 그래프를 그리는 함수def update(val): a = s_a.val b = s_b.val c = s_c.val d = s_d.val y = a * x**3 + b * x**2 + c * x + d ax.clear() ax.plot(x, y, label=f"${a}x^3 + {b}x^2 + {c}x + {d}$") ax.set_title('Cubic Function') ax.set_xlabel('x..