i dont knw how to implement polynomial addition using arrays in c++.
polynomial adition using array in c++
Page 1 of 11 Replies - 2622 Views - Last Post: 27 July 2009 - 09:48 AM
Replies To: polynomial adition using array in c++
#2 Guest_Neumann*
Re: polynomial adition using array in c++
Posted 27 July 2009 - 09:48 AM
You mean adding two different polynomials? To add two polynomials you simply need to add their components together. Have arrays store those components then add them together.
Example, a polynomial 4x^5 + 3x^3 - x^2 + 8 can be stored in a 5-element array like {8, 0, -1, 3, 0, 4}.
Example, a polynomial 4x^5 + 3x^3 - x^2 + 8 can be stored in a 5-element array like {8, 0, -1, 3, 0, 4}.
This post has been edited by Neumann: 27 July 2009 - 09:53 AM
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote


|