Solved

Polynomial in C++

Posted on 2006-11-09
3
1,554 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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from http://seleniumhq.org (http://seleniumhq.org) Go to that link and select download selenium in the right hand columnThat will then direct you to their downlo…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…

706 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now