-
这是一个简单的演示如何评价文本的数学表达式
This a simple demo of how to evaluate mathematical expressions in text
format, including provision for variables and functions. The code consists of
three simple classes: 1) Calc - which does the main calculations, 2) Stack -
which is used to push and pop intermediate operators and numbers and 3)
Symbol Table. The symbol table is a collection of calc symbols, a type structure
consisting of various elements, including the expression name, function name,
and the final value of the expression The evaluation procedure is done in three
steps: 1) simplify the expression by removing all the elements within () and
storing them in subexpressions within the symbol table. 2) Each of these sub
expressions are then converted to RPN format (Reverse polar notation) and
evaluated 3) Finally, the main expression is converted to RPN and evaluated-This is a simple demo of how to evaluate mathematical expressions in text
format, including provision for variables and functi
- 2022-02-20 06:26:41下载
- 积分:1
-
飞思卡尔电磁组程序
此项目信纸被为了让你启动并运行快速与 MC9S12DG128B 的 CodeWarrior。它是为所选的 CPU 和目标连接设置但是,可以容易地修改。
- 2022-06-26 09:06:31下载
- 积分:1
-
地震勘探频率-波数域波动方程正演相移加插值法正演程序
资源描述地震勘探中,频率-波数域PSPI波动方程正演模拟C语言程序,适合与初学正演的人,其在相移法的基础上利用插值提高了算法精度,同时相比时域有限差分运算更快,但仍然不能适应横向速度变化过大的速度模型。
- 2022-07-08 04:53:42下载
- 积分:1
-
program sudoku
我问这个问题是为了确定哪种内存分配算法在性能关键型应用程序(如游戏引擎或嵌入式应用程序)中提供更好的结果。结果实际上取决于记忆碎片的百分比和记忆请求的时间决定性。
- 2023-01-16 03:45:04下载
- 积分:1
-
OLSR协议NS2
对于无线网络,载波传感和相关的
- 2022-07-27 06:30:55下载
- 积分:1
-
序列 alignment(DNA)
基本点序列比对算法。当 newgeneis 发现,通情达理理解其功能的标准方法就是看通过已知基因的数据基和夏装接近的匹配项。如此接近的两个基因是由他们排列的程度来衡量的。正式这,想到作为一个长字符串在字母表 σ 上的基因 = {A、 C、 G、 T}。考虑两个基因 (字符串) x = ATGCC 和 y = TACGCA。对齐的 x 和 y 是一种通过编写他们 incolumns,比如说匹配这两个字符串:− T − G C C− C G C T A
- 2022-11-01 14:00:03下载
- 积分:1
-
快速DCT变换 迭代算法
快速DCT变换 迭代算法- Fast DCT transformation iteration algorithm
- 2022-01-26 07:08:19下载
- 积分:1
-
生成条形码的DLL文件及其使用例子
生成条形码的DLL文件及其使用例子- Production bar code DLL document and its use example
- 2022-04-01 10:10:27下载
- 积分:1
-
牛顿下山法,比较好用!
牛顿下山法,比较好用!-Newton downhill, better quality!
- 2022-02-24 09:26:51下载
- 积分:1
-
n阶方阵的克劳特(crout)分解matlab实现
应用背景n阶方阵的克劳特(crout)分解matlab实现关键技术在矩阵分析课上学习了n阶方阵的三角分解或叫克劳特(crout)分解,便尝试着用MATLAB编程实现。给一个例子如下:
原矩阵a=[2 1 -5 1;1 -3 0 -6;0 2 -1 2;1 4 -7 6]
执行 [l,u]=crout(a);
分解后得:
l=[2 0 0 0;1 -3.5 0 0;0 2 0.4286 0;1 3.5 -2 -9]
u=[1 0.2 2.5 0.5;0 1 -0.7143 1.8571;0 0 1 -4;0 0 0 1]
- 2022-03-20 07:06:32下载
- 积分:1