2007年5月18日星期五

muParser - Fast mathematical expressions parser


解析数学公式字符串并进行计算。
可以直接包含源代码来进行编译,也可以通过动态链接库等方式来实现。
支持多种编译器和多种平台。

Many applications require the parsing of mathematical expressions. The main objective of this project is to provide a fast and easy way of doing this. muParser is an extensible high performance math parser library. It is based on transforming an expression into a bytecode and precalculating constant parts of it.

The math parser library is written in pure C++ and should compile on every standard compliant compiler. I provide you with static libraries and a DLL version ready for implementation into your projects. The code has been tested using MS VC++ V7.1 and GCC V3.3.1. It reportedly works on BCB too. I provide you with three demo projects in order to help you understand its usage.

But before I go on, I'd like to thank SourceForge for hosting this project. This pages would not exist without the webspace provided by them and of course I'd like to thank CodeProject for hosting the original math parser article.




官方网址:
http://muparser.sourceforge.net/
官方网址上提供了大量的示例,从最简单的到最复杂的所有功能都有对应的示例代码。
CodeProject 上的一个介绍性的文章,包含示例代码和说明的下载。
http://www.codeproject.com/cpp/FastMathParser.asp

没有评论: