版本比较
快速傅里叶变换 FFT 笔记
正文
增加 7 行删除 7 行
93 行未改动9495969798989910010110216 行未改动119120121122123123124125125126127127128129130131191 行未改动全部展开32332432532632732732832932933033133133233333433563 行未改动93 行未改动$A$ 的坐标为 $(a,b)$ ,根据 **勾股定理** 计算其模长为 $\sqrt{a^2+b^2}$.
$B$ 的坐标为 $(c,d)$ ,同理计算其模长为 $\sqrt{c^2+d^2}$.
$C$ 的坐标为 $(ac-bd,ad+bc)$ ,计算其模长为 $C$ 的坐标为 $(ac-bd,ad+bc)$ ,计算其模长为
$\sqrt{(ac-bd)^2+(ad+bc)^2}=\sqrt{a^2c^2-2abcd+b^2d^2+a^2d^2+2abcd+b^2c^2}$
$=\sqrt{a^2c^2+a^2d^2+b^2c^2+b^2d^2}$16 行未改动
```cppstruct CP { double x,y; friend CP operator + (const CP& a,const CP& b) friend CP operator + (const CP& a,const CP& b) {return (CP){a.x+b.x,a.y+b.y};} friend CP operator - (const CP& a,const CP& b) friend CP operator - (const CP& a,const CP& b) {return (CP){a.x-b.x,a.y-b.y};} friend CP operator * (const CP& a,const CP& b) friend CP operator * (const CP& a,const CP& b) {return (CP){a.x*b.x-a.y*b.y,a.x*b.y+a.y*b.x};}};```
191 行未改动全部展开const double Pi=acos(-1);
struct CP { double x,y; friend CP operator + (const CP& a,const CP& b) friend CP operator + (const CP& a,const CP& b) {return (CP){a.x+b.x,a.y+b.y};} friend CP operator - (const CP& a,const CP& b) friend CP operator - (const CP& a,const CP& b) {return (CP){a.x-b.x,a.y-b.y};} friend CP operator * (const CP& a,const CP& b) friend CP operator * (const CP& a,const CP& b) {return (CP){a.x*b.x-a.y*b.y,a.x*b.y+a.y*b.x};}};vector<CP>w[20];
63 行未改动