资源发布:Expression Evaluator v1.4
CSDN 2000-07-29 12:05:00 资源下载,详细资料请访问:http://www.csdn.net/develop/resource.asp?ID=73
强大功能,能够解析数学运算式,并且计算其值的构件,支持四则运算、三角函数、指数对数、次方运
算及使用者自定变量
This component is a mathematical function parser for
Delphi. It allows you to calculate a value given an
expression in string form. It supports the following
operators and functions:
+ : Addition
- : Substraction
* : Multiplication
/ : Division
^ : Exponential (only positive numbers
for the base)
( : Open parenthesis
) : Close parenthesis
MOD : MOD operator. Integers only (if used with floating
point numbers, it will round the values to integers)
ABS (Range: -1e4932..1e4932)
ATAN (Range: -1e4932..1e4932)
COS (Range: -1e18..1e18)
EXP (Range: -11356..11356)
LN (Range: 0..1e4932)
ROUND (Range: -1e9..1e9)
SIN (Range: -1e18..1e18)
SQRT (Range: 0..1e4932)
SQR (Range: -1e2446..1e2446)
TRUNC (Range: -1e9..1e9)
It also supports an unlimited number of user-defined
variables and complete error handling support,
including returning the position in the string where
an error ocurred.