数据结构课程设计线性表及其应用,长整数四则运算,实现任意长的整数进行加法运算的演示程序。-curriculum design data structures and application of linear table, four long integer operations and achieve long arbitrary integer addition operations for the demonstration program. 下载
|
这个是长整数四则运算,通过输入后缀表达式得出运算结果!-This is a long integer four operations, through the importation of expression suffix reached Operational results! 下载
|
长整数的四则运算,用双向循环链表实现,堆分配存储-long integer operations of four, with two-cycle Chain achieve stacked memory allocation 下载
|
实现超长的整数四则运算,多用于科学类研究.谢谢-achieve long integer four computing, multi-category for scientific research. Thank you 下载
|
超长整数的四则运算。此程序绝对经典,让你感到耳目一新。-long integer operations of four. This procedure absolute classic, so you feel refreshing. 下载
|
DSP编程代码,FFT算法,经典!! FFT实验 一、 理论: 公式(1)FFT运算公式 FFT并不是一种新的变换,它是离散傅立叶变换(DFT)的一种快速算法。由于我们在计算DFT时一次复数乘法需用四次实数乘法和二次实数加法;一次复数加法则需二次实数加法。每运算一个X(k)需要4N次复数乘法及2N+2(N-1)=2(2N-1)次实数加法。所以整个DFT运算总共需要4N^2次实数乘法和N*2(2N-1)=2N(2N-1)次实数加法。如此一来,计算时乘法次数和加法次数都是和N^2成正比的,当N很大时,运算量是可观的,因而需要改进对DFT的算法减少运算速度。 根据傅立叶变换的对称性和周期性,我们可以将DFT运算中有些项合并。 我们先设序列长度为N=2^L,L为整数。将N=2^L的序列x(n)(n=0,1,……,N-1),按N的奇偶分成两组,也就是说我们将一个N点的DFT分解成两个N/2点的DFT,他们又从新组合成一个如下式所表达的N点DFT: 一般来说,输入被假定为连续、合成的。当输入为纯粹的实数的时候,我们就可以利用左右对称的特性更好的计算DFT。 我们称这样的RFFT优化算法是包装算法:首先2N点实数的连续输入称为“进包”。其次N点的FFT被连续被运行。最后作为结果产生的N点的合成输出是?DSP programming code, the FFT algorithm, classic! ! FFT an experimental and theoretical : formula (1) FFT formula FFT is not a new transformation, it is the discrete Fourier transform (DFT), a fast algorithm. As in the calculation of DFT at the complex multiplication required a four real multiplication and secondary real Adder; Adder required a complex real Adder II. Each Operational an X (k) needs time 4N complex multiplication and 2N 2 (N-1) = 2 (2N-1) Real Adder. Therefore, the whole operation would need a total DFT 4N ^ 2 times the actual amount of multiplication and N * 2 (2N-1) = 2N (2N-1 ) times the actual amount of additive. So, when calculating the number of multiplication and addition are the number and proportion of N ^ 2, when the big N, Operational capacity is substantial and 下载
|