pskk
pskk

Reputation: 405

C# dll to solve simple equation

I am looking for a C# dll to solve simple equation. Example ..

10 = 2 + 3 + x

Result should be x = 5;

Is there a free DLL?

Upvotes: 6

Views: 4736

Answers (3)

OtherControls
OtherControls

Reputation: 29

You can use Math Expression Editor Light (MEEL)

Upvotes: 1

Lawrence P. Kelley
Lawrence P. Kelley

Reputation: 4326

I've used this Math Expression Parsing library with positive results. The documentation he's provided was very useful to boot.

http://www.codeproject.com/KB/recipes/MathieuMathParser.aspx?display=Print

Your app can then accommodate ad hoc equations which the library will parse into component parts. You can then provide the values for required variables and it will evaluate the result.

The library includes many function (trig, log, factorials, datetime, random, etc.) and can handle user-defined functions.

Upvotes: 8

Jean-Christophe Fortin
Jean-Christophe Fortin

Reputation: 748

Use System.Math if you have to make something more diffucult then an addition. Otherwise .. do it your self IT'S FREE !

Upvotes: -3

Related Questions