Skip to content

Mathparser interprets and calculates mathematical strings in Delphi

License

Notifications You must be signed in to change notification settings

Jens01/NewMathparser

Repository files navigation

NewMathparser

Mathparser interprets and calculates mathematical strings in Delphi.

Faster than Parser10

Uses „Reverse Polish Notation“ (RPN)

With Unittesting!

32/64-bit, XE7 and newer

inspired by cyMathparser (Cindy Components )

Operators:

  • '+' '-' '*' '/' : plus, minus, multiplication, division
  • '^' : power
  • '%' : mod

How to use on wiki :

var
 MP : TMathParser;
 R: Double;
begin
 MP := TMathParser.Create;
 try
   MP.Expression := '((4+5)6)7 + Min(3, 4, 5)';
   R := MP.ParserResult;
   if MP.Error.IsNoError then
     ShowMessage(R.ToString)
   else
     ShowMessage(MP.Error.ToString); 
 finally
  MP.Free;
 end;
end;

About

Mathparser interprets and calculates mathematical strings in Delphi

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages