Solved

Polynomial in C++

Posted on 2006-11-09
3
1,567 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
[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 Comments
 
LVL 18

Accepted Solution

by:
Jose Parrot 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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Need Tool Easily Convert Text to a quote string 5 40
How to check if url exists using c++? 6 782
Hide carret in RichEdit 4 77
Breakpoint problem 8 114
Programmer's Notepad is, one of the best free text editing tools available, simply because the developers appear to have second-guessed every weird problem or issue a programmer is likely to run into. One of these problems is selecting and deleti…
Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
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 perform CRUD operations on a MySql database.

738 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