Solved

Polynomial in C++

Posted on 2006-11-09
3
1,564 Views
Last Modified: 2013-11-17
I have problem with polynomial. A program witten by C++
input : 2+3^2+4^6*10+sin30-cos45+........
output: result of polynomial

can send to me the code ? send to vhm1985@yahoo.com
thanks
0
Comment
Question by:kolosoxu
3 Comments
 
LVL 18

Accepted Solution

by:
JoseParrot earned 75 total points
ID: 17911508
Hello, kolosuxu,

It is against ee rules to post emails to direct communications. Also we can't send answers directly: all the answers are to be post here, in the same way I'm writing this now.

About the question, it is not a trivial one. You need a parser to read the string and capable of understanding ASCII codes for numbers, math signs (+ - * ^), trigronometric entities (sin, cos), capable also of execute the calculations under rules of precedence (first ^, then * and /, then + and -). This a good sizing program.

Your may want try the code at
http://www.eleves.ens.fr/home/ollivier/mathlib/mathexpr.html

Jose
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
eclipse find/step into stored procedure 3 189
easiest way to find port number 12 111
How and where to get Business Intelligence Development Studio? 2 91
Best free Visio Editor? 2 194
In our object-oriented world the class is a minimal unit, a brick for constructing our applications. It is an abstraction and we know well how to use it. In well-designed software we are not usually interested in knowing how objects look in memory. …
How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from http://seleniumhq.org Go to that link and select download selenium in the right hand columnThat will then direct you to their download page.From that page s…
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

856 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