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

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

于 2022-02-20 发布 文件大小:117.37 kB
0 106
下载积分: 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 个回复

  • 线性的插值,内涵读取文件,实现和写入文件。读取的文件为PARCHG,写入的文件为INSERT_DATA...
    线性的插值算法,内涵读取文件,算法实现和写入文件。读取的文件为PARCHG,写入的文件为INSERT_DATA-Linear interpolation algorithm, meaning to read documents, algorithm implementation and write to a file. Read documents PARCHG, written documents INSERT_DATA
    2022-07-14 11:15:11下载
    积分:1
  • 长整数的四则运
    长整数的四则运算-long integers four Operational
    2022-05-05 02:08:09下载
    积分:1
  • Binary Search tree
    二元搜索樹 goodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgoodgood 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
    2022-03-25 08:08:29下载
    积分:1
  • Matlab二维非稳态导热计平板
    本程序通过两种算法对二维非稳态导热进行计算,第一种为逐点迭代求解,第二种为逐行迭代TDMA求解。大家可以根据自己的需求在No1 No2处进行切换。新人第一次发程序,求各路大神能多多指点!谢谢!
    2022-02-07 04:18:02下载
    积分:1
  • 哲学家就餐问题的两种实现
    哲学家就餐问题的两种算法实现-Two philosophers eat algorithm
    2022-01-26 01:36:10下载
    积分:1
  • 有限差分波动方程不加边界条件二阶正演时间切片程序。
    有限差分波动方程不加边界条件二阶正演时间切片程序。-Finite difference wave equation without boundary conditions of second-order forward time-slicing procedure.
    2023-01-28 02:50:03下载
    积分:1
  • 自适应陷波器设计
    针对频率、幅值和相位均发生变化的时变信号,现有自适应陷波器(ANF)频率估计方法存在信号频率跟踪精确性和稳定性不足的问题,为此提出了一种基于新误差函数的ANF时变信号频率跟踪方法,通过新误差函数改善自适应算法收敛至最优频率解的精度与速度,以提高时变信号频率跟踪的精确性和稳定性。给出了新误差函数分析结果,新ANF方法实现步骤和该频率估计方法的Cramer-Rao下限。通过训一算与现有ANF的时变信号频率跟踪方法性能进行了比较分析,并针对科里奥利质量流量训一时变信号进行了现场实验验证。结果表明,该方法具有收敛速度快、跟踪精度高、更接近Cramer-Rao下限和抗噪性好的优点。
    2022-04-14 17:22:40下载
    积分:1
  • 路由器最短路径测试源代码!
    路由器最短路径测试源代码!-Shortest Path router test source code!
    2022-01-26 00:10:38下载
    积分:1
  • PURE去噪仿真程序
    非常好的有关图像去噪仿真程序,有测试图片。仿真效果非常好,可用于图像匹配,图像融合,目标跟踪与检测仿真效果非常好,希望对大家有用
    2022-08-04 04:43:46下载
    积分:1
  • 找图delphi
    应用背景简单的图片找图..抢微信红包也是用这个找图了.windows系统找图必需品,集成到自己作品超好类库.可扩展多种模式........关键技术简单的图片找图算法图找色.色对比..超容易调用.配合模拟按键(过了再发)就是一个按键精灵了.........按键精灵就是找图点击按键...........
    2022-01-23 11:09:55下载
    积分:1
  • 696518资源总数
  • 105540会员总数
  • 37今日下载