Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
Solved

input equation

Posted on 1999-07-24
Medium Priority
224 Views
I want to use Delphi write a program which user can input some equations to use for some calculation.

example
a=2;
b=3;
c=a+b;
( i want user write this code in my Memo component and i can use value of c for my calculated loop)
this sure that c must be 5.

Thank you.
0
Question by:lekhaew
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

• Help others & share knowledge
• Earn cash & points
• 3
• 2

Author Comment

ID: 1390918
Edited text of question.
0

LVL 13

Expert Comment

ID: 1390919
Look here for a component that can do that for you:

http://www.efg2.com/lab/library/Delphi/MathFunctions/Parsers.htm

Regards,

Epsylon.
0

LVL 13

Accepted Solution

Epsylon earned 210 total points
ID: 1390920
Well, I'll post that as an answer....

Look here for a component that can do that for you:

http://www.efg2.com/lab/library/Delphi/MathFunctions/Parsers.htm

Regards,

Epsylon.
0

LVL 13

Expert Comment

ID: 1390921
0

Author Comment

ID: 1390922
Thank you very much.
In this site I have found many component or unit which can evaluate string expression.

But really i want to make a program which user can input his differential equation ,initial condition, for example
x[0]=0;
u=5;
x' = 2*x + 3u;
then i can use this equation to calculate x at any time

Could you give me for more idea ??
Thanks.

0

Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses
Course of the Month8 days, 16 hours left to enroll