登录
首页 » 算法 » 这是一个简单的演示如何评价文本的数学表达式

这是一个简单的演示如何评价文本的数学表达式

于 2022-02-20 发布 文件大小:117.37 kB
0 129
下载积分: 2 下载次数: 1

代码说明:

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

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 贝叶斯网络结,结构学习学习工具箱
    该工具箱包括了典型地贝叶斯网络学习方法,并且通过实例比较了这些方法的性能,同时还比较了这些方法用于贝叶斯分类中的准确率                                  
    2022-04-23 15:48:01下载
    积分:1
  • 大名鼎鼎的海洋数值计模型
    大名鼎鼎的海洋数值计算模型-pom模型源代码及说明书和示例,推荐一下,-famous marine numerical model-pom model specification and the source code and examples, recommended that huh
    2022-01-25 18:31:12下载
    积分:1
  • 基于STM32的FFT和IFFT程序
    应用背景STM32液晶显示,用于频谱分析,信号处理方面,可以驱动TFT液晶显示,快速傅里叶变换和逆变换测试可用关键技术频谱分析,可用的FFT和IFFT,以及TFT液晶驱动,基于STM32编写,编程环境为MDK,非常好用
    2022-04-15 23:07:13下载
    积分:1
  • works numerical algorithm commonly used language _C
    工程常用数值算法_C语言-works numerical algorithm commonly used language _C
    2023-07-04 18:40:05下载
    积分:1
  • sha2加密
    资源描述这是用哈希函数,sha2实现的加密算法,C语言。这是用哈希函数,sha2实现的加密算法,C语言。这是用哈希函数,sha2实现的加密算法,C语言。这是用哈希函数,sha2实现的加密算法,C语言。
    2022-03-16 17:39:07下载
    积分:1
  • 迷宫游戏的执行情况
    你好,这是迷宫实现净 logo 语言的 3 维空间中。我们处理起点和终点,至少选择到达结束的最佳路径。
    2022-06-15 19:11:50下载
    积分:1
  • 随机数字的学生表
    这段代码打印出随机生成学生成绩 Table.Inputs 是: 大量的学生: 数的考试: 数的 Assgs:Number 的小测验: 考试、 assgs 和测验和评估权重。输出是一个表学生 Id 是独一无二的随机生成。和所有的评估分数也随机生成的。它还打印为每个学生的平均和平均的每一次评估。所有的随机生成的数据是放入一个一维数组,然后用从那里。
    2023-03-25 03:40:03下载
    积分:1
  • delphi xvid 编解码
    基于delphi开发的MP4播放器,其中有XVID的编解码源码,希望对大家有帮助
    2022-08-11 16:40:49下载
    积分:1
  • C++ 读取BMP图像,非常实用
    程序用二进制读取BMP文件图像,并实现了图像的读取、保存,以及对图像修改后的重保存。对图像的读取以及像素的操作都很方便。相信对大家很有帮助。
    2022-04-09 05:38:26下载
    积分:1
  • 哲学家就餐问题的C#实现
    哲学家就餐问题的C#实现 -dining philosophers problem of C#
    2022-06-17 16:27:44下载
    积分:1
  • 696516资源总数
  • 106409会员总数
  • 8今日下载