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

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

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

  • 直流电机的 PID 控制
    pid 控制直流电机转速和旋转编程与 CCS 编译器 (C 代码),用 protus 模拟
    2022-03-09 19:29:15下载
    积分:1
  • 中的高斯列主元 是计中很重要的一种...
    计算方法中的高斯列主元算法 是计算方法中很重要的一种算法 -Method of calculation set out the main element in the Gaussian algorithm is a very important method of calculating an algorithm
    2022-01-21 23:42:41下载
    积分:1
  • Adding maliicious node to aodv
    2022-08-15 14:09:20下载
    积分:1
  • CKNN 用于多示例学习
    CKNN  Using the Citation KNN algorithm[1] to get the labels for bags in testBags, where minmum Hausdorff distance is used to measure the distances between bags %     CKNN takes, %        PBags     - an Mx1 cell array where the jth instance of ith positive bag is stored in PBags{i}(j,:) %        NBags     - an Nx1 cell array where the jth instance of ith negative bag is stored in NBags{i}(j,:) %        testBags  - a Kx1 cell array where the jth instance of ith test bag is stored in testBags{i}(j,:) %         Refs     - the number of referecnes for each test bag %        Citers    - the number of citers for each test bag %      &n
    2022-03-01 19:43:00下载
    积分:1
  • 素数因子产生器:该程序能生成prime factor
    素数因子产生器:该程序能生成prime factor-prime factor Generator : the program can generate prime factor
    2022-03-22 01:33:11下载
    积分:1
  • 数字图像处理
    数字图像处理,实现点运算,几何变换,正交变换,图像增强,形态学变换,边缘与轮廓,图像分析(阈值分割,投影检测,差影检测,模板匹配),图像复原,图像编码(哈弗曼,香农弗诺,行程,LZW,JPEG)
    2022-02-05 10:51:38下载
    积分:1
  • 总,包括LMS自适应陷波滤波器,自适应RLS自适应,苏…
    一共包括LMS,自适应陷波器,自适应RLS自适应算法等5种算法的MATLAB程序-Total, including LMS, adaptive notch filter, adaptive RLS adaptive algorithm, such as five kinds of procedures MATLAB algorithm
    2022-04-08 08:15:52下载
    积分:1
  • php文件上传
    php上传图片文件,多种格式,可显示是否上传成功,可以预览图片效果,直接在浏览器里输入Url,即可操作。up.phpup2.php,提供文件上传到哪个路径,可查看。
    2022-12-18 23:45:04下载
    积分:1
  • 弗洛依德warshal
    资源描述这个应用解决了弗洛依德warshal算法。
    2022-01-24 18:51:51下载
    积分:1
  • matlab编写的Lyapunov指数计程序
    matlab编写的Lyapunov指数计算程序 ,李雅普诺夫指数 本程序给出了关于lorenz系统李雅普诺夫指数的计算方法,该程序基于Jacobi方法计算。计算准确。 
    2023-03-28 10:25:03下载
    积分:1
  • 696516资源总数
  • 106918会员总数
  • 4今日下载