-
离散数学 输出真值表实验
本实验要求大家利用C/C++语言,实现任意输入公式的真值表计算。一般我们将公式中的命题变元放在真值表的左边,将公式的结果放在真值表的右边。命题变元可用数值变量表示,合适公式的表示及求真值表转化为逻辑运算结果;可用一维数表示合式公式中所出现的n个命题变元,同时它也是一个二进制加法器的模拟器,每当在这个模拟器中产生一个二进制数时,就相当于给各个命题变元产生了一组真值指派。算法逻辑如下:
(1)将二进制加法模拟器赋初值0
(2)计算模拟器中所对应的一组真值指派下合式公式的真值。
(3)输出真值表中对应于模拟器所给出的一组真值指派及这组真值指派所对应的一行真值。
(4)产生下一个二进制数值,若该数值等于2n-1,则结束,否则转(2)。
- 2022-03-01 19:02:09下载
- 积分:1
-
旋转路由协议
路由协议是一种不可缺少的一部分,它保证了无线传感器网络的正常运行和信息的高效传输
- 2022-03-05 08:50:58下载
- 积分:1
-
stl文件读取与显示
应用背景STL =
STL文件,一种3D模型文件格式STL(STereo Lithography的缩写)
STL文件格式是由3D SYSTEMS 公司于1988
年制定的一个接口协议,是一种为快速原型制造技术服务的三维图形文件格式。STL 文件由多个三角形面片的定义组成,每个三角形面片的定义包括三角形各个定点的三维坐标及三角形面片的法矢量。三角形顶点的排列顺序遵循右手法则。 STL 文件有2 种类型:文本文件(ASCII格式)和二进制文件(BINARY)。关键技术This program may crash your system or run poorly depending on your
hardware. The program and code contained in this archive was scanned
for virii and has passed all test before it was put online. If you
use this code in project of your own, send a shout out to the author!
- 2022-05-08 08:33:51下载
- 积分:1
-
两电平SVPWM程序
这是一个两电平的SVPWM程序,已经在dsp上调试成功,并应用于工程中。在这个程序中采用的是Q函数的方法,简单方便,并且便于理解
- 2023-06-21 06:25:03下载
- 积分:1
-
#define MSGHEADER "MICROCALC
#define MSGHEADER "MICROCALC - A Turbo C Demonstration Program"
#define MSGKEYPRESS "Press any key to continue."
#define MSGCOMMAND "Press / for the list of commands"
#define MSGMEMORY "Memory Available:"
#define MSGERROR "ERROR"
#define MSGLOMEM "Not enough memory to allocate cell."-# define MSGHEADER "MICROCALC-A Turbo C De monstration Program "# define MSGKEYPRESS" Pr ess any key to continue. "# define MSGCOMMAND" P keypress/for the list of commands "# define MSGMEMO RY "Memory Available : "# define MSGERROR" ERROR "# define MSGLOMEM" N ot to allocate enough memory cell. "
- 2022-04-08 12:36:24下载
- 积分:1
-
用C++实现的遗传算法程序,简单易懂,拥有遗传算法的一些经典方法...
用C++实现的遗传算法程序,简单易懂,拥有遗传算法的一些经典方法-Implemented using C++ genetic algorithm program, easy to understand, with some of the classical method of genetic algorithms
- 2023-09-04 01:15:03下载
- 积分:1
-
pseudo
伪随机数生成算法,很优秀,32位real-pseudo-random number generation algorithms, excellent, 32 real
- 2023-04-03 03:45:03下载
- 积分:1
-
本程序是基于PIC24的Calculator程序,其实现Calculator多个功能,具体自己体会,这程序旨在让大家熟悉PIC24的编程问题....
本程序是基于PIC24的Calculator程序,其实现Calculator多个功能,具体自己体会,这程序旨在让大家熟悉PIC24的编程问题.-this program is based on the PIC24 Calculator procedures, Calculator achieve a number of its functions, its own specific experience, This procedure aims to let everyone familiar with the PIC24 programming problems.
- 2023-03-13 05:45:04下载
- 积分:1
-
writing mathematical function call library, LU decomposition, high Shisaideer it...
自编数学函数调用库,有LU分解法,高斯塞德尔迭代法,追赶法解线性方程组,还有一维和二维的高斯积分公式-writing mathematical function call library, LU decomposition, high Shisaideer iterative method, catching up with the method for solving linear equations, one-and two-dimensional Gaussian integral formula
- 2023-08-06 04:30:03下载
- 积分:1
-
QT绘图板
在inuxl ubantu系统下的QT运行,一个简单的c++绘图板的编制,能够满足正常情况下的图形的绘制
- 2023-05-23 10:10:03下载
- 积分:1