Delphi Math Functions

Parsers, Mathematical Expression Evaluators, Calculators

Numerical Methods in Pascal page:  Expression Parsers
http://www-rab.larc.nasa.gov/nmp/nmpIndex.htm#Parsers
 

Recursion Excursion:  Building an Advanced Expression Calculator article in Delphi Informant (subscription)

Package/Program Description
AdCalc Advanced Calculator evaluator which can be used to evaluate mathematical expressions  at run time. There is no restriction in depth or complexity of   expression.
http://delphi.icm.edu.pl/ftp/d40share/adcalc.zip
CalcExpress See the Delphi Studio Companion CD#1
www.aidaim.com/products/free_components/intr_spc.php 
CalcStr One of the HyperString functions
www.mindspring.com/~efd/tools.htm
Calculators Non-Delphi:

The Calculator Home Page
www.calculator.org 

CHD3 An expression calculator to a compiler generator
www.cocolsoft.com.au/download.htm
DiffExpress TDiffExpress is a differentiator providing an easy way to use symbolic differentiation of mathematical expressions in your applications. It provides the result as an equation, supporting 5 operators, parenthesis, 18 mathematical functions and user-defined variables.
www.aidaim.com/products/free_components/difr_spc.php 
http://delphi.icm.edu.pl/ftp/d30free/difr141.zip 
ESBCalc
 Freeware Scientific Calculator with Infix Notation, Brackets, Scientific Functions, Memory, Result History List and more. And it includes Delphi™ 4 Source for those interested. 

www.esbconsult.com.au/esbcalc.zip
Also requires:  LMD Tools 4

ESB Consultancy:  www.esbconsult.com.au

Express Expression evaluator for functions of up to three variables, also supporting up to 6 parameters.  Not an interpreter, but a quasi compiler for the functions, so it is fast for repeated evaluations.   Free for noncommercial and educational use.  By Renate Schaaf.  http://delphi.icm.edu.pl/ftp/d10share/express.zip
Expression Eddie Churchill's (Borland) Expression Evaluator
www.virtualchurchill.com/eddie/development/expressi.htm
Expression Evaluator Evaluate mathematical expressions, including the following operators and functions: +, -, *, /, ^, ( ), mod, abs, atan, cos, exp, ln, round, sin, sqrt, sqr, trunc. Includes full source code and demo application.

Expression Evaluator V1.4 from BitSoft Developemnt, LLC (click on "Free Stuff")

www.bitsoft.com/freestuff/delphi/parser.htm

Financial Calculator http://delphi.icm.edu.pl/ftp/d20free/Fin_Calc.zip
Formula Compiler Component

Formula Compiler:  A Snappy Run-Time Formula Evaluation PackageDelphi Informant, June 1998, pp. 62-68.  (subscription)

FPlot Visual component that plots math functions. Includes a quick parser, so formulas are put as strings in a component's property.  Very simple to use.   Full source code. http://delphi.icm.edu.pl/ftp/d30free/fplot.zip
Fractions Calculator An object-oriented fractions calculator
www.delphix.de/Tutorials/FractCalculator/MM_Tutorial1.htm 
Links Several math parsers/expression evaluators
www.programmersheaven.com/zone2/cat265/index.htm
 
LongCalc RPN expression evaluation with vast integers www.merlyn.demon.co.uk/programs/longcalc.pas
Mathematical Expression Parser  MEP calculates expressions entered at runtime. User functions and variables can be used.
http://delphi.icm.edu.pl/ftp/d40share/meparser.zip 
Mathematischer Parser Turbo-Pascal-Units für Turbo Pascal 6 and 7, Beispiel-Programme und eine ausführliche Dokumentation.  www.fh-hamburg.de/rzbt/dnksoft/cammpus/parser.html
MEP Mathematical Expression Parser (MEP). Calculates expressions entered at runtime as a string.
http://delphi.icm.edu.pl/ftp/d40share/meparser.zip 
MicroCalc TP 3
www.geocities.com/SiliconValley/2926/tpsrc/microcalcpas.txt
MWPasPar A Pascal parser
Delphi Super Page: http://delphi.icm.edu.pl/ftp/d20free/mwpaspar.zip
nrwcalc Component to manipulate the execution of the standard Windows calculator (calc.exe).
http://delphi.icm.edu.pl/ftp/d30share/nrwcalc.zip
Parser10 Parse and evaluate mathematical expression
Delphi Super Page: http://delphi.icm.edu.pl/ftp/d10free/parser10.zip
RecuCalc A TP parser, calculates math formula with recursion
ftp://garbo.uwasa.fi/pc/turbopas/recucalc.zip
RyFormulaEval Mathematical formula compiler & evaluator.  VCL Component for Delphi. TRyFormulaEval is a native Delphi component designed to evaluate mathematical formulas.
http://delphi.icm.edu.pl/ftp/d40share/RyFormulaEval.zip 
SimpleCalc A simple 4 function calculator program
www.delphiforfun.org/Programs/SimpleCalc.htm 
SWAG (Parsing) Parsing/Tokenizing SWAG Software Archive Group, 14 examples
www.gdsoft.com/swag/parsing.zip    (requires Reader)
Symbolic Set of classes that can evaluate functions, and do simple symbolic operations (like deriving, Taylor etc).  Symbolic is not only a parser, it also does some symbolic math, and evaluates expressions fast.    www.stack.nl/~marcov/symbolic.zip

Requires FCL (Free Component Library) available from www.freepascal.org/fcl/fcl.html 

TatMathEvaluator
Real and complex numeric expression evaluator  and TatEquationMemo and TatDBEquationMemo, to edit equations.  Works with real and complex numbers.  Works with multiple dependant equations.  http://delphi.icm.edu.pl/ftp/d30share/amathtr.zip 
TbcParser TbcParser implements parse once-evaluate many times type of parsing for mathematical expressions given as strings. TbcParser is especially useful in scientific, engineering programs.
http://delphi.icm.edu.pl/ftp/d40share/bcParserEval.zip 
TCalc "Classic" Turbo Calc example program

Download Turbo Pascal 5.5 from the Borland Community Museum:  http://community.borland.com/museum and unpack the TCALC.ARC file.

TExpress Expression Evaluator for functions of up to 3 variables, with support of 6 parameters. Not an interpreter but a quasi compiler, so evaluates fast.
www.xmission.com/~renates/delphi.html
TExpressionParser A flexible and fast expression parser object for logical and mathematical functions.
www.dow.wau.nl/aew/ParseExpr.html 
TFormulaTrans Parses a mathematical formula; outputs the string in a form where it can be read by most of
the expression Parsers which are available

http://delphi.icm.edu.pl/ftp/d10share/ftrans16.zip

TFunctionParser and TComplexParser Delphi components for evaluating mathematical functions. TFunctionParser provides almost 90 predefined mathematical functions and operations, including arithmetic, powers, roots, logarithms, trig functions, arc functions, hyperbolic functions, statistical functions, random numbers, bessel functions, integral functions, gamma function, step function, bitwise and logic functions. TComplexParser provides more than 30 complex math functions and operations.

www.mhgs.onlinehome.de/parser/parsinfo.htm 
by Marianne H. Goeltl-Schuberth

TmlRegularExpression Native Delphi Regular Expression handling
http://home.clear.net.nz/pages/niche/RegularExpression/index.html
TRxMathParser Part of RxLib (VCL Extensions).  Functions: Sin, Cos, Tan, Abs, Exp, Ln, Log, Sqrt, Sqr, Int, Frac, Trunc, Round, ArcSin, ArcCos, ArtTan, Sign, Not

www.rxlib.com   (file Parsing.PAS)

TzCalc www.xs4all.nl/~dgb/delmath.html#C_COMPONENTS
UCalc UCalc Fast Math Parser is an ActiveX component that allows a program to evaluate algebraic expressions at runtime.

www.ucalc.com/mathparser/index.html 

xaeval Simple evaluation engine, with support for variable substitution, capable to resolving BEDMAS and logic equations (source code  included). 
http://delphi.icm.edu.pl/ftp/d30free/xaeval.zip

Links Verified 12 Nov 2000
Updated 27 Nov 2002


since 1 Nov 1998