473,396 Members | 2,011 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Dynamic formula entering(Professionals Only)

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
2 1385
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: steve | last post by:
Hi All Not sure if this is the right forum, but I need the formula for calculating the amount of Sales tax (GST) from the tax included price In Australia GST is 10% and the standard formula is...
13
by: Jon Paal | last post by:
this works as shown: <script Language="javascript" src="http://127.0.0.1/syndicate.ashx?d=suppliers"></script> is there a way to set src programmatically ??
3
by: Salimunnisaa | last post by:
pls give me code for entering only alphabets in textboxes
7
by: pavitra232 | last post by:
I hav a text box n how do i validate it for entering only numbers and "-" and where do i include my javascript in JSF....
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.