摘要:
//追赶法解方程组Pursue.cpp#include <iostream>#include <vector>#include <algorithm>using namespace std;class SolutionEquations{private: vector<double> a; vector<double> b; vector<double> c; vector<double> f; vector<double> x; public: void setABCF(vector<dou 阅读全文
摘要:
//注明:a为存储每段二次曲线的系数的二维矩阵//二次样条差值void fit_second(Point *p, int n, double y0d, vector<vector<double> > &a){ vector <double> va; for (int i=0; i<n-1; i++) { double x0 = p[i].x; double y0 = p[i].y; double x1 = p[i+1].x; double y1 = p[i+1].y; double h0 = x1 - x0... 阅读全文