1 Replies - 5382 Views - Last Post: 27 July 2009 - 09:48 AM Rate Topic: -----

#1 beulahponmalar  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 26-July 09

polynomial adition using array in c++

Posted 27 July 2009 - 09:46 AM

i dont knw how to implement polynomial addition using arrays in c++.
Is This A Good Question/Topic? 0
  • +

Replies To: polynomial adition using array in c++

#2 Guest_Neumann*


Reputation:

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}.

This post has been edited by Neumann: 27 July 2009 - 09:53 AM

Was This Post Helpful? 0

Page 1 of 1