版本比较
大砖数学(二)多项式基础
正文
增加 5 行删除 5 行
18 行未改动19202122232324252627209 行未改动全部展开237238239240241242241242243244245246247246247248249250251227 行未改动全部展开18 行未改动### FFT 神秘历史
1807 年,傅里叶完成了一项研究,他发现在表示一个物体的温度分布时,成谐波关系的正弦函数级数是非常有用的。另外,他还断言:“任何”周期信号都可以用这样的级数来表示。~~然而他假了~~。虽然在这一问题上他的论述很有意义,但隐藏在这后面的很多基本概念已经被其他科学家发现;同时傅里叶的数学证明也不够完善。直到 1829 年,狄利克雷给出若干精确条件,~~把这个烂摊子收了~~,在这些条件下,一个周期信号才可以用一个傅里叶级数表示。~~因此,傅里叶其实并没有对傅里叶级数的数学理论做出什么贡献。~~
1963 年 8 月美、英、苏三国在莫斯科谈判,达成协议签定了该条约,全称为《关于禁止在大气层、外层空间和水下进行核武器爆炸实验的条约》,又称《部分核禁止条约》或三家条约。可以注意到,条约中不包括地下核武器爆炸实验,这是因为地下核实验难以被检测到,大地隔绝了大部分的辐射,声音。使得其难以想地上或水下核试验一样容易被探测到。要想探测地下核试验,主要靠分析地动信息。但如何将日常地址活动造成的地动与核试验造成的地动区分开来成为了当时科学家所难以解决的问题。在快速傅里叶算法还未发现之前,按照离散傅里叶定义使用计算机对地动信号做频谱分析,算力远远不足,分析出的数据严重过时。~~因此在这个背景下,FFT 出现了。~~1963 年 8 月美、英、苏三国在莫斯科谈判,达成协议签定了该条约,全称为《关于禁止在大气层、外层空间和水下进行核武器爆炸实验的条约》,又称《部分核禁止条约》或三家条约。可以注意到,条约中不包括地下核武器爆炸实验,这是因为地下核实验难以被检测到,大地隔绝了大部分的辐射,声音。使得其难以想地上或水下核试验一样容易被探测到。要想探测地下核试验,主要靠分析地动信息。但如何将日常地震活动造成的地动与核试验造成的地动区分开来成为了当时科学家所难以解决的问题。在快速傅里叶算法还未发现之前,按照离散傅里叶定义使用计算机对地动信号做频谱分析,算力远远不足,分析出的数据严重过时。~~因此在这个背景下,FFT 出现了。~~
----
复数和复平面就不讲了,这个幼儿园小小班就学过。209 行未改动全部展开 fcomplex(_Tp X=0,_Tp Y=0) : x(X),y(Y) {} inline fcomplex<_Tp> operator+(const fcomplex<_Tp> b) const {return fcomplex(this->x+b.x,this->y+b.y);} inline fcomplex<_Tp> operator-(const fcomplex<_Tp> b) const {return fcomplex(this->x-b.x,this->y-b.y);} inline fcomplex<_Tp> operator*(const fcomplex<_Tp> b) const {return fcomplex(this->x*b.x-this->y*b.y,this->x*b.y+this->y*b.x);} inline fcomplex<_Tp> operator*(const _Tp b) const {return fcomplex(this->x*b,this->y*b);} inline fcomplex<_Tp> operator/(const _Tp b) const {return fcomplex(this->x/b,this->y/b);} inline fcomplex<_Tp> operator*(const _Tp b) const {return fcomplex(this->x*b,this->y*b);} inline fcomplex<_Tp> operator/(const _Tp b) const {return fcomplex(this->x/b,this->y/b);} inline fcomplex<_Tp>& operator+=(const fcomplex<_Tp> b) {this->x+=b.x;this->y+=b.y;return *this;} inline fcomplex<_Tp>& operator-=(const fcomplex<_Tp> b) {this->x-=b.x;this->y-=b.y;return *this;} inline fcomplex<_Tp>& operator*=(const fcomplex<_Tp> b) {fcomplex<_Tp> tmp=(*this)*b;this->x=tmp.x;this->y=tmp.y;return *this;} inline fcomplex<_Tp>& operator*=(const _Tp b) {this->x*=b;this->y*=b;return *this;} inline fcomplex<_Tp>& operator/=(const _Tp b) {this->x/=b;this->y/=b;return *this;} inline fcomplex<_Tp>& operator*=(const _Tp b) {this->x*=b;this->y*=b;return *this;} inline fcomplex<_Tp>& operator/=(const _Tp b) {this->x/=b;this->y/=b;return *this;} }; template<typename _Tp=double> void FFT(fcomplex<> a[],int rv[],_Tp type,int lim) {227 行未改动全部展开