汉诺塔!!! Simulate the movement of the Towers of Hanoi puzzle Bonus is possible for using animation eg. if n = 2 A→B A→C B→C if n = 3 A→C A→B C→B A→C B→A B→C A→C
标签: the animation Simulate movement
上传时间: 2017-02-11
上传用户:waizhang
实验一:三次样条插值(P56,例6) 一、实验目的: 1) 掌握三次样条插值的运用 2) 了解拉格朗日插值在高次上的误差 二、实验环境:Matlab6.5 三、实验内容: 1) 给定函数f(x)=1/(1+x2),-5<=x<=5,节点xk=-5+k,(k=0,1,2…10),用三次样条插值求S10(x),S10’(-5)=f’(-5),S10’(5)=f’(5)。 2)作原函数f(x),拉格朗日插值函数Ln(x),三次样条差值函数Sn(x)。画出三个函数的图像,比较它们的区别。
上传时间: 2017-02-18
上传用户:天诚24
详细介绍uclinux移植过程,很系统! 第六章目录:6.1 Bootloader 6.1.1 Bootloader介绍 6.1.2 Bootloader的启动 6.1.3 Bootloader的种类 6.2 U-Boot编程 6.2.1 U-Boot工程简介 6.2.2 U-Boot源码结构 6.2.3 U-Boot的编译 6.2.4 U-Boot的移植 6.2.5 添加U-Boot命令 6.3 U-Boot的调试 6.3.1 硬件调试器 6.3.2 软件跟踪 6.3.3 U-Boot启动过程 6.3.4 U-Boot与内核的关系 6.4 使用U-Boot 6.4.1 烧写U-Boot到Flash 6.4.2 U-Boot的常用命令[1] 6.4.2 U-Boot的常用命令[2] 6.4.3 U-Boot的环境变量 141
上传时间: 2017-03-09
上传用户:洛木卓
1. 在No.1图形窗口中绘制 y=sin(x)在[0,2*pi]内的曲线。要求曲线的颜色为绿色,线型为 点划线,用*标示坐标点,在x轴的附近用 黑体 标注 ‘x轴’字样,在图形的上方加上标题 ‘正弦函数’,严格控制x,y轴分度相等,并开启网格。 2. 在No.2图形窗口中创建四个子窗口,在第一、二子窗口中用不同的方法同时绘制 y=x^2,y=-x^2,y=x^2*sin(x) 在[0,2*pi]内的曲线,并要给出标注 在第三个子窗口中绘制 三维曲线 3. 把No.3图形窗口分成五个子窗口,分别用plot3 mesh meshc meshz surf 来绘制 z=x*exp(-x^2-y^2) 在 -5=<x,y<=5 内的空间曲面图形,说明他们的区别,其中要求在用surf绘制的窗口内加入位置为[1,0.5,2]的光源,加入颜色标尺,采用spring色系
上传时间: 2017-03-30
上传用户:84425894
这是从网上下载下来的一个计算程序,能实现加、减、乘、除的计算。该程序接受 的是16进制数。 执行时,需在文件名后直接跟上计算表达式,如在命令提示符下执行结果如下: c:\masm>js 3+2 5 c:\masm>js 6*7 2A c:\masm>js 10-4
上传时间: 2014-11-27
上传用户:BOBOniu
基于单片机的10根线束线缆检测器的源程序 #pragma sfr #pragma DI #pragma EI #pragma NOP //#pragma interrupt INTTM010 isr_INTTM000 #pragma interrupt INTTM80 isr_INTTM80 //#pragma interrupt INTTMH1 isr_INTTMH1 #pragma section @@CNST OPT AT 80H const char OPTION=0x94 typedef unsigned char uchar typedef unsigned int uint //==PORT DEFINE== #define SEND1_P P4.1 #define SEND2_P P4.2 #define SEND3_P P4.3 #define SEND4_P P4.4 #define SEND5_P P4.5 #define SEND6_P P4.6 #define SEND7_P P4.7 #define SEND8_P P13.0 #define SEND9_P P2.3 #define SEND10_P P2.2
标签: pragma interrupt INTTM 010
上传时间: 2017-05-25
上传用户:sunjet
//颜色初始化 if(!has_colors() || start_color() == ERR){ endwin() printf("Terminal does not support color.\n") exit(1) } init_pair(1, COLOR_GREEN, COLOR_BLACK) init_pair(2, COLOR_RED, COLOR_BLACK) init_pair(3, COLOR_CYAN, COLOR_BLACK) init_pair(4, COLOR_WHITE, COLOR_BLACK) init_pair(5, COLOR_MAGENTA, COLOR_BLACK) init_pair(6, COLOR_BLUE, COLOR_BLACK) init_pair(7, COLOR_YELLOW, COLOR_BLACK) //写字符串 for(i = 1 i <= 7 i++) { attron(COLOR_PAIR(i)) printw("color pair d in normal mode\n", i) } for(i = 1 i <= 7 i++) { attron(COLOR_PAIR(i) | A_BLINK | A_UNDERLINE) printw("color pair d in normal mode\n", i) }
标签: start_color has_colors Terminal endwin
上传时间: 2014-01-14
上传用户:vodssv
介绍I2C 总线规范................................................................................................... 6 4 I2C 总线的概念....................................................................................................... 6 5 总体特征................................................................................................................. 7 6 位传输..................................................................................................................... 7 6.1 数据的有效性..................................................................................................................... 7 6.2 起始和停止条件
上传时间: 2013-12-15
上传用户:lgnf
采用单神经元结构对两类样本进行分类,其中X为输入样本,T为目标向量。X=[-0.5,-0.5,0.3,0.1,-0.1,0.8,0.2,0.3 0.3,-0.2,-0.6,0.1,-0.5,1.0,0.3,0.9] T=[0,0,0,1,0,1,1,1]
上传时间: 2013-12-18
上传用户:xc216
为了实现通讯录管理的几种操作功能,首先设计一个含有多个菜单的主控菜 单程序,然后再为这些菜单配上相应功能。 1、 主控菜单设计要求 (1) 菜单内容 程序运行后,给出6个菜单项的内容和输入提示: 1. 通讯录链表的建立 2. 通讯者结点的插入 3. 通讯者结点的查询 4. 通讯者结点的删除 5. 通讯录链表的输出 6. 退出管理系统 请选择0-5: (2) 设计要求 使用数字0-5来选择菜单项,其它输入不起作用。
上传时间: 2013-12-20
上传用户:fxf126@126.com