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
5
Medium Priority
?
224 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
[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
  • Learn & ask questions
  • 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

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

721 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