摘要:
ARM-DSP读书笔记 开坑 原书是ARM Education Media的《Digital Signal Processing using Arm Cortex-M based Microcontrollers - Theory and Practice》。由于电赛备赛和个人学习方向需要,决定 阅读全文
摘要:
快速幂 一般的求幂方法 初学编程时,学校一般都会出求x的n次幂的题目。而在做基础题的时候,也经常会用到math.h中的pow函数来求x的n次幂。但是,这些方法不一定能满足我们开发中所需效率。 //迭代法 int pow(int x, int n){ int ans = 1; while(n--) a 阅读全文