-
使用结点分析法求解直流电阻电路,并将结果保存在txt格式的文档中...
使用结点分析法求解直流电阻电路,并将结果保存在txt格式的文档中-The use of node analysis method to solve the DC resistance circuit, and the results saved in txt format document
- 2022-07-27 14:21:49下载
- 积分:1
-
实用的具有精度监视功能的常微分方程数值解法
实用的具有精度监视功能的常微分方程数值解法-practical function with precision surveillance of ordinary differential equations Numerical Solution
- 2023-02-14 01:30:04下载
- 积分:1
-
非递归解决斐波那契数列问题
递归的缺点:
–递归算法解题相对常用的算法如普通循环等,运行效率较低。因此,应该尽量避免使用递归,除非没有更好的算法或者某种特定情况,递归更为适合的时候。在递归调用的过程当中系统为每一层的返回点、局部量等开辟了栈来存储。递归次数过多容易造成栈溢出等
–执行时间长、占用空间多
–主要原因:递归调用时的现场保护与恢复(相对于迭代过程而言)
一个反复执行过程,可否用循环结构实现?
递归调用时,返回点怎么记录?
递归返回时,如何接着以前的断点继续执行?
返回值如何处理:若当前是较深一层的递归调用,如何将返回值返回到上一层递归过程的引用位置上?
系统栈:保护现场、保存返回值、返回地址
- 2023-01-28 00:35:03下载
- 积分:1
-
程序只产生均值为0,方差为1的随机数,要产生均值为E,方差为D的随机数,只要随机数*D+E就可以了。高斯随机数程序还是带参数的,参数是用来描述正态分布的一个浮点...
程序只产生均值为0,方差为1的随机数,要产生均值为E,方差为D的随机数,只要随机数*D+E就可以了。高斯随机数程序还是带参数的,参数是用来描述正态分布的一个浮点数表。在执行程序时,先生成这个表(只做一次),而后就可以任意多次地执行高斯随机数产生程序了。使用C是为了保证通用性,如果有人觉得麻烦,可以用C++做个类,把这些东西都封装进去。另外,如果有人有兴趣,也可以把它修改成任意形式分布的连续随机数产生程序,修改非常简单,这里就不提示了。-procedures have only mean of 0 and variance for a random number to produce the mean E, D variance for the random number, as long as a few random E* D on it. Gaussian random process parameters or with the parameter is used to describe a normal distribution of the float table. In the implementation process, Mr. into the table (one-off), and you can repeatedly arbitrary implementation Gaussian random number generator proceedings. The use of C is to ensure commonality, if someone finds trouble, can be used to be a Class C, all these things into account Packaging. Also, if someone is interested, can you change the form of arbitrary distribution of continuous random number generator procedure is very simple changes, I will not be sacrificed as a result.
- 2023-08-17 15:20:03下载
- 积分:1
-
提供了PID控制的程序框图,可根据实际需要进行修改。
提供了PID控制的程序框图,可根据实际需要进行修改。-provide PID control of the process diagram, can be based on actual need to be modified.
- 2022-02-03 08:43:12下载
- 积分:1
-
表达式计算器
/* 表达式计算 */
/* 调用方式:CalcExp("1+max(0.5,sin(1))+sum(1,2^3,mod(5,3))", res, infoStr) */
/* 带符号参数调用方法,先调用符号定义AddSignParam,再调用 CalcExp: */
/* AddSignParam(["a","s"], [1, 0.5]); 或者 AddSignParam("a=1,s=0.5") */
/* CalcExp("1+a+sin(s)", res, infoStr) */
- 2022-03-25 07:34:54下载
- 积分:1
-
FuzzyPSO优化算法
资源描述本程序是关于模糊粒子群优化算法的程序,具有用于优化函数等功能,通过改变代价函数优化不同函数等。
- 2022-09-25 20:00:03下载
- 积分:1
-
this procedure in running Matlab environment suitable for solving a class of lin...
此程序在matlab环境下运行,适于求解线性规划一类问题。(单纯形法)-this procedure in running Matlab environment suitable for solving a class of linear programming problems. (Simplex)
- 2022-01-26 04:35:30下载
- 积分:1
-
根据TI血氧所改进的血氧代码
1使用stm32f051最为主控,次代码在模拟期中测试过,缺点为数据不是很稳定,不过有待改进
- 2022-05-13 15:55:12下载
- 积分:1
-
用mente-calo法算三维积分:
工作平台是:vs2002(7.0) MFC
用mente-calo法算三维积分:
工作平台是:vs2002(7.0) MFC-with mente- calo 3D integral operator France : working platform is : vs2002 (7.0) MFC
- 2022-08-20 16:19:10下载
- 积分:1