Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

multiplying Two array

  Asked By: Qadriyah    Date: Feb 28    Category: Java    Views: 1717
  

I need help writting java code to compute two polynomial.

I have to design and implement a class for polynomials that uses a
linked list to store the coefficients ( so there is virtually no
limit on n). Include a method that multiplies two polynomial.

for example 2 + x^2 - 3x^3 and 1 - x - 2x^2 + 3x^3

are represented by
2, 0, 1, -3 and 1, -1, ,-2, 3

the product of the two polynomials is

2 - 2x - 3x^2 + 2x^3 + x^4 + 9x^5 - 9x^6
which is represented by
2, -2, -3, 2, 1, 9, -9

Share: 

 

2 Answers Found

 
Answer #1    Answered By: Aabirah Khan     Answered On: Feb 28

I need to get things cleared so that i can work on it...
I need to write a method  which takes 2 arguments...
the two polynomials, right and return the resultant polynomial  right?
i can work on it, only after u reply...

 
Answer #2    Answered By: Utsav Shah     Answered On: Feb 28

Thats what i exactly wanted to do multiply two polynomial.

 
Didn't find what you were looking for? Find more on multiplying Two array Or get search suggestion and latest updates.




Tagged: