Welcome to Dream.In.Code
Getting C++ Help is Easy!

Join 132,270 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 1,147 people online right now. Registration is fast and FREE... Join Now!




Dividing two polynomials with different degrees

 
Reply to this topicStart new topic

Dividing two polynomials with different degrees

sclaxplayer
post 12 Mar, 2008 - 06:25 PM
Post #1


New D.I.C Head

*
Joined: 12 Mar, 2008
Posts: 1

So far I have a program that reads in two user's polynomials in an input operator. Then , mattering on the application I can add the two polynomials together or subtract them I also have to divide them. If the two polynomials each had the same degree this would be a simple problem but since it's all on user input it is a bit more difficult. Right now I read each polynomial into a dynamic array of integer the size of the given degree of the polynomial. For instance the polynomial of 2x^4+x^2+3x5 is stored with an integer degree = 4 being passed to the function as well as an array of coefficients :
int coeffs[4,0,1,3,5]. I am only asking for hints. I am completely lost and my teacher thought it would be a good idea to go to a conference a week before the project is due!!
icon_down.gif Well anywho any help would be grand!
User is offlineProfile CardPM

Go to the top of the page

Reply to this topicStart new topic
Time is now: 11/22/08 12:20AM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month