数值计算之 插值法(6)样条插值

文章正文

发布时间:2024-12-15 03:37

0、界说 已知函数 2、C++ 步调我有用到矩阵库Armadillo,没有拆置的请点那个拆置教程链接 #include #include #include using namespace std; using namespace arma; int main() { double V[] = { 0, 3, 5, 7, 9, 11, 12, 13, 14, 15 }; double y[] = { 0,1.2,1.7,2.0,2.1,2.0,1.8,1.2,1.0,1.6 }; int size = sizeof(V) / sizeof(double); const double m