实现一个超过了计算机所表示范围的长整数的加减法-achieve an over by the computer, said the scope of the long integer addition and subtraction 下载
|
数据结构实验一中的长整数的加法,减法的实现,主要用到了双向有序链表的一些基本操作- 下载
|
用户输入2个任意长整数,求它们的加法,减法和乘法,并将结果显示;-two user input arbitrarily long integers, for the addition, subtraction and multiplication, and the results show; 下载
|
实现整数的加减法。可以是很长的那种。不考虑位数-achieve integer addition and subtraction method. It is the kind of long. Not considering the median 下载
|
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 下载
|
编写一个巨型整数类HugeInt,可以用默认值0或长整型数或字符串进行对象的初始化(构造) 然后用成员、友元或普通函数等重载相应的运算符实现下述功能(必须优化算法、同时进行异常处理):“巨型整数”OP“巨型整数/长整型数/字符串” [其中OP为:加+、减-、乘*、整除/、求余%、复合运算(+=、-=、*=、/=、%=)和关系运算(>、>=、<、<=、!=和==)] “长整型数/字符串”OP “巨型整数”(其中OP为:+、-、*、/、%和关系运算),求负(-巨型整数),巨型整数++、++巨型整数,--巨型整数、巨型整数--,插入(输出)运算符<<。 最后编写一个主函数(测试程序)对以上功能进行全面的测试。 -prepared a giant HugeInt type Integer, can use the default value 0 or long integer or string for a few object initialization (Construction) then members Friends yuan or ordinary functions such as heavy corresponding Operators achieve the following functions (must optimization algorithm, Exception handling simultaneously) : "Mega-integer" OP "giant integer / long integer / strings" [which OP :, plus or minus-, x *, divisibility /, I requested% Composite Operators (=,-=,*=,/=,%=) relations and operations ( 下载
|
程序能用于24小时计时,能作为秒表使用,能定时闹铃1分钟(也可关). 使用方法:开机后在00:00:00起开始计时,(1)长按P1.0进入调分状态:分单元闪烁 按P1.0加1,按P1.1减1.再长按P1.0进入时调整状态,时单元闪烁,加减调整同调分.- 下载
|