题目 思路 部分思路见注释 代码 # 三次样条插值 import sympy as sp # x = [-3, -1, 0, 3, 4] # y = [7, 11, 26, 56, 29] x = [0.25, 0.30, 0.39, 0.45, 0.53] y = [0.5000, 0.5477, 0.6245, 0.6708, 0.7280] lenx = len(x) num = [i for i in range(lenx)] h = [None] lamda = [None] * lenx miu = [None] * lenx d = [None] * lenx M = []