📜  余弦插值 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:14.149000             🧑  作者: Mango

代码示例3
def cosineInterpolate(y1, y2, x):
   xv = (1 - cos(x * 3.1415927)) / 2
   return y1 + (y2 - y1) * xv