By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,446 Members | 1,317 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,446 IT Pros & Developers. It's quick & easy.

Dynamic formula entering(Professionals Only)

P: n/a
Dear friends:
There has been a problem for months in my mind.Only if any1 can help
me some keywords for search I will be very thankful.
For example I want to write a program to solve an equation.I want that
user be able to enter the formula(Imagine that he knows all the
syntax) .(You know!its like microsoft excell)
in my present knowledge the coder must put the base of formula in his
code but I want the user does it.HELP ME PLEASE

Thank you so much

May 28 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
In article <11**********************@h2g2000hsg.googlegroups. com>,
dr**********@gmail.com says...
Dear friends:
There has been a problem for months in my mind.Only if any1 can help
me some keywords for search I will be very thankful.
For example I want to write a program to solve an equation.I want that
user be able to enter the formula(Imagine that he knows all the
syntax) .(You know!its like microsoft excell)
in my present knowledge the coder must put the base of formula in his
code but I want the user does it.HELP ME PLEASE
You'll need to write a lexer, parser, etc., and interpret the formula on
the fly. You'll probably find things like lex and yaxx or boost.spirit
helpful in this.

--
Later,
Jerry.

The universe is a figment of its own imagination.
May 28 '07 #2

P: n/a
On Mon, 28 May 2007 14:14:49 -0600, Jerry Coffin wrote:
>dr**********@gmail.com says...
>For example I want to write a program to solve an equation.I want that
user be able to enter the formula(Imagine that he knows all the
syntax) .(You know!its like microsoft excell)
in my present knowledge the coder must put the base of formula in his
code but I want the user does it.HELP ME PLEASE

You'll need to write a lexer, parser, etc., and interpret the formula on
the fly. You'll probably find things like lex and yaxx or boost.spirit
helpful in this.
or reuse what others have written:
http://www.codeproject.com/cpp/#Math
--
Roland Pibinger
"The best software is simple, elegant, and full of drama" - Grady Booch
May 28 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.