首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > 这是一个简单的演示如何评价文本的数学表达式

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

资 源 简 介

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

文 件 列 表

@PSC_ReadMe_72063_1.txt
Calc.cls
CalcLib.vbp
frmCalc.frm
frmCalc.frx
ReadMe.txt
screenshot.jpg
Stack.cls
SymbolTbl.cls
Test Calc Group.vbg
TestCalc.vbp
UsrFn.bas

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP