搜索资源列表
用c编写的N*N的螺旋矩阵源代码
- /* 实现效果: 1 2 6 7 15 3 5 8 14 16 4 9 13 17 22 10 12 18 21 23 11 19 20 24 25 */ #include <stdio.h> #define N 5 //阶数,即N*N的螺旋矩阵 void main() { int i, j, num=1, a[N][N]; for(i=0; i<=N/2; i++) &nb
Calculate24
- 计算24点,随机生成4个10一下的数,要求算出24,如果输入错误,则输出答案-Calculation of 24 points, randomly generated four 10-bit number, requiring calculated 24, if the input error, the output answers
iostream3
- 用流操纵算子setw,setiosfags,resetiosfags以及成员函数setf()和unsetf()控制整型数在域宽内左对齐和右对齐。-With flow control operator setw, setiosfags, resetiosfags and member function setf () and unsetf () integer control within the width of the field aligned left and right aligned.
512wei_zheng_yu_xian_biao
- 关于512位的正余弦表,内有两个数组,分别存放已经算好的正余弦数-About 512 positive cosine table with two arrays were stored has been considered a good number of sine and cosine
calendar
- 编程思路:按照以上背景知识可得判断闰年的规律:某年年份如果能被4整除但不能被100整除,或者能被400整除则是闰年。由此规则可推得计算万年历的公式: s=X-1+[X-1]/4-[X-1]/100+[x-1]/400+c 上式中:X为公元年数(如2003年);C 为从元旦起,到要算的那天总数(如2003年3月23日,C=31+28+23=82)。S/7余数是星期几。 -Programming idea: In accordance with the above background kn
vcbxcvb
- (2)、24点游戏: 基本要求及步骤: 1) 随机产生四个1-13的数,分别代表13张牌。 2) 提示玩家输入算式。 3) 判断玩家输入的表达式是否合法,其中算式中的四个数字只能是程序所给的四个数字,非法则回到1)。 4) 如果玩家认为这四张牌算不出24点(如:1,1,1,1),可只输入?,程序将判断这四张牌是否能得出24点,如果能,则程序将给出算式,如果不能,说明不能,并回到1)。 5) 当用户正确输入算式后,用“堆栈来求表达式的值”的原理 求出结果并判断是否
PsCal
- 个人计算器。有人使用Windows提供的计算器时可能会发现,当有多笔数累计时,算到后面确不知道前面,容易出错还不知道。这个计算器完全避免这个问题,输入内容可以自动保存,支持带多重括号的运算式子,还有计算过程展开显示,目前自己使用感觉挺爽。本工程使用了一个皮肤,环境是BCB6。-Personal calculator. Provided by someone using the Windows calculator may be found, when the amounts have accum
20090612
- 算符优先算法,输入文法数和文法,自动分析生成firstVT和lastVT,并显示表,输入字符串,判断该字符串是否符合要求-Operator priority algorithm, the number of input grammar and the grammar, generate automatic analysis firstVT and lastVT, and display the table, enter the string to determine whether it mee
Binary_Tree
- 数算的二叉树的POJ作业,分别有:二叉树1_二叉树的操作;二叉树2_文本二叉树;二叉树3_由中根序列和后根序列重建二叉树;二叉树4_表达式.表达式树.表达式求值;二叉树5_Huffman编码树;二叉树6_二叉搜索树;二叉树7_实现堆结构-Count of the binary tree POJ jobs
Binary-Tree
- POJ 文本二叉树 总的来说,又是数算作业啦啦啦(是自己写的哦~~~)-POJ text binary tree in general, but also to count jobs la la la (write by myself own oh ~ ~ ~)
mpu6050
- MPU6050经过互补滤波和四元数转换为欧拉角 得到稳定的三轴角度(MPU6050 is converted to Euler angles by complementary filtering and four element number to obtain a stable three axis angle)
93317476matlab
- 四元数解算姿态程序,可以帮助用户做惯性导航的姿态解算(Four element counting gesture program Can help users do inertial navigation attitude calculation)
惯性导航四元数法
- 主要利用四元数来解算姿态角,并实时更新四元数,然后实时更新姿态角。(The attitude angle is calculated by four variables, and the four variables are updated in real time, and then the attitude angle is updated in real time.)
惯性导航中加速度计和陀螺仪性能研究_徐东升
- 通过利用陀螺仪数据来解算和更新四元数,进而来计算姿态角。(The attitude angle is calculated by using the gyro data to solve and update the number of four variables.)
H9
- 谢尔排序,快速排序以及归并排序的三个Python程序(Shell sorting, quick sorting and merge sort of three Python program)
链表等
- python基础功能的ADT实现代码,数算必会。以及无序表等实现方法(The basic Python functions to achieve the ADT code, the number will be. And unordered table and other implementation methods)
四元数解算姿态Matlab程序代码
- 四元数是简单的超复数。 复数是由实数加上虚数单位 i 组成,其中i^2 = -1。 相似地,四元数都是由实数加上三个虚数单位 i、j、k 组成,而且它们有如下的关系: i^2 = j^2 = k^2 = -1, i^0 = j^0 = k^0 = 1 , 每个四元数都是 1、i、j 和 k 的线性组合,即是四元数一般可表示为a + bk+ cj + di,其中a、b、c 、d是实数。 对于i、j、k本身的几何意义可以理解为一种旋转,其中i旋转代表X轴与Y轴相交平面中X轴正向向Y轴正向的旋转,j
魔方阵
- 输入魔方阵阶数,自动输出,可以计算1-200阶的魔方阵(put the number of magic square array, automatic output, can calculate the 1-200 order of the magic square array)
dist
- 用最短路径算法算出特定两点之间的距离 输入:直接读取net.in文件 第一行为四个整数N,M,S,T,每两个整数之间用一个空格隔开,分别表示网络的节点(编号为1到N),网络线段数,以及起点终点编号 接下来M行,每行三个整数U,V,D,每个整数之间用空格隔开,表示节点U和V之间有一条线路相连,距离是D,(两个节点可能有多条线路) 输出:直接写入到net.out文件,输出只有一行,表示从S点到T点的最短距离(如果不通则输出-1) (N<=100,M<=N*N,D<=100
四元数程序与惯组数据
- 姿态解算 四元数公式文件代码为 function dq=MyQuaternion(t,q,Wmx,Wmy,Wmz) dq=zeros(4,1); dq(1)=1/2*(-Wmx*q(2)-Wmy*q(3)-Wmz*q(4)); dq(2)=1/2*(Wmx*q(1)+Wmz*q(3)-Wmy*q(4)); dq(3)=1/2*(Wmy*q(1)-Wmz*q(2)+Wmx*q(4));