-
计算1!+2!+3!+...+n!的较快的算法。
计算1!+2!+3!+...+n!的较快的算法。
- 2022-12-24 23:55:04下载
- 积分:1
-
函数名称:CRC
函数名称:CRC-16 Process
函数原型:INT16U make_crc16(INT8U *msgaddr,INT8U datalen)
函数功能:进行CRC校验和产生CRC代码.这个函数只影响全局变量crc16.
校验字放在字符串最后,低8位在前高8位在后.
msgaddr : 进行CRC16校验的据块的首地址
datalen : 进行CRC16校验的据块的个数
CRC-ITU的计算算法如下:
a.寄存器组初始化为全"1"(0xFFFF)。
b.寄存器组向右移动一个字节。
c.刚移出的那个字节与数据字节进行异或运算,得出一个指向值表的索引。
d.索引所指的表值与寄存器组做异或运算。
f.数据指针加1,如果数据没有全部处理完,则重复步骤b。
g.寄存器组取反,得到CRC,附加在数据之后(这一步可省略)。
- 2023-05-27 07:15:03下载
- 积分:1
-
C经典代码大全
一些C编程语言经典编程题目,希望对大家有用。#include
int main(void)
{
unsigned int i = 0x12345678;
char*pc =(char*)&i;
printf("0x%x
", *pc);
double *pd = (double*)&i;
printf("%f
", *pd);
printf("sizeof pc = %d sizeof pd = %d
", sizeof(pc), sizeof(pd));
return 0;
}
- 2022-04-01 10:36:20下载
- 积分:1
-
original request with the VC process, translate between 2
求原跟的VC程序,可计算2-10000之间的质数的原跟-original request with the VC process, translate between 2-10000 the quality of the original with a few
- 2022-02-07 21:09:23下载
- 积分:1
-
massive mimo THP algrorithm
应用背景On the Design of ZF and MMSE Tomlinson-Harashima Precoding in Multiuser MIMO Amplify-and-Forward Relay System,it is main described the mimo system in the multi-user scenario.the main precoding algrithm is combined the zf precoding and the MMSE precoding.关键技术we design a zero-forcing (ZF) Tomlinson-Harashima precoding (THP) and a minimum mean
square error (MMSE) THP for multiuser MIMO relay system with direct link. Based on these precoding structures, we propose the optimal combining weights of the ZF THP and the MMSE THP in half duplex relay system, and the sub-optimal weights of MMSE THP to reduce feedback channel state information(CSI). Through the Monte Carlo simulation, we verify that the optimal weights combining method outperforms the constant weights combining method. In addition, we confirm that the
performance of the sub-optimal weights combining method is&
- 2023-02-25 18:10:03下载
- 积分:1
-
求解电磁场的三维有限元算法程序,使用C语言实现.比较高效.
求解电磁场的三维有限元算法程序,使用C语言实现.比较高效.-Solving the three-dimensional electromagnetic finite element method, the use of C language. Comparative efficiency.
- 2023-02-19 13:50:03下载
- 积分:1
-
ACM模拟试题 明明的随机数
附件中有详细的题目要求和运行通过的源代码...
ACM模拟试题 明明的随机数
附件中有详细的题目要求和运行通过的源代码-ACM is clearly a random number of mock examination papers are detailed in the annex to the subject requirements and run through the source code
- 2022-06-26 15:07:59下载
- 积分:1
-
米勒拉宾算法的c语言代码
本代码是使用米勒拉宾算法对一个数是否为素数作出判断,综合运用了费马小定理,卡米尔歇数的性质,卡米尔歇数的考赛特判别法的数学方法,拉宾米勒素数测试算法是一个不完全准确的算法,当然,底数a数组取数越多,测试的准确率越高
- 2022-08-26 00:00:54下载
- 积分:1
-
SCE-UA算法
SCE-UA是一种全局优化算法,它集成了随机搜索算法、单纯形法、聚类分析及生物竞争演化等方法的优点,能有效处理目标函数反映面存在的粗糙、不敏感区及不凸起等问题,且不受局部最小点的干扰。其基本思路是将基于确定性复合型搜索技术和自然界中的生物竞争进化原理相结合,其关键部分为竞争的复合型进化算法(CCE)。在CCE中,每个复合型的顶点都是潜在的父辈,都有可能参与产生下一代群体的计算。每个子复合型的作用如同一对父辈。在构建过程中应用了随机方式选取子复合型,使得在可行域中的搜索更加彻底。 该代码采用SCE-UA算法进行垂向混合产流的参数自动率定,较好的解决了参数率定中的问题。
- 2022-03-15 12:43:19下载
- 积分:1
-
code for FDTD 1D with pml and source
code for FDTD 1D with pml and source
- 2022-01-31 17:41:44下载
- 积分:1