?
Solved

input equation

Posted on 1999-07-24
5
Medium Priority
?
228 Views
Last Modified: 2010-04-04
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.

Can someone give me an idea and some source code about this ?
                                       Thank you.
0
Comment
Question by:lekhaew
  • 3
  • 2
5 Comments
 

Author Comment

by:lekhaew
ID: 1390918
Edited text of question.
0
 
LVL 13

Expert Comment

by:Epsylon
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

by:
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

by:Epsylon
ID: 1390921
0
 

Author Comment

by:lekhaew
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

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

Question has a verified solution.

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

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
This is an update to some code that someone else posted on Experts Exchange. It is an alternate approach, I think a little easier to use, & makes sure that things like the Task Bar will update.
SQL Database Recovery Software repairs the MDF & NDF Files, corrupted due to hardware related issues or software related errors. Provides preview of recovered database objects and allows saving in either MSSQL, CSV, HTML or XLS format. Ensures recov…
Watch the video to learn how one can deal with PST file corruption issue with an outstanding Kernel for Outlook PST Repair Tool easily. Using this tool, non-technical users can swiftly perform the repair process to restore their essential data witho…
Suggested Courses

589 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question