# How can you add two polynomials using link-list?

To add two polynomials using a linked list, you could build a list of coefficients to the polynomial. Remember that a polynomial is in the form ax0 + bx1 + cx2 + dx3 ... and so on. The linked list would contain the coefficients a, b, c, d, and etc. Since a linked list is variable in length, you could handle polynomials of arbitrary degree, up to the limits of memory. To add two polynomials, simply iterate through the coefficients and add them, a1+a2, b1+b2, c1+c2 and so on.

### C program to add two polynomials using two dimensional arrays and functions without using structure?

No structure? Then don't use any computer program/language, because they are all structured. The 2-dimensional array is a kind of (data) structure as well. Also, to apply 2D array as the representation of polynomials: 1. How many variables in this "polynomials", 1, 2, or more? 2. the highest power (rank) is 1? 3, in the form of aX+ b, represented by [a, b], or [b,a]? C program would not be able to represent an polynomial…

### How do you multiply three or more polynomials?

To multiply TWO polynomials, you multiply each term in the first, by each term in the second. This can be justified by a repeated application of the distributive law. Two multiply more than two polynomials, you multiply the first two. Then you multiply the result with the third polynomial. If there are any more, multiply the result with the fourth polynomial, etc. Actually the polynomials can be multiplied in any order; both the communitative and…

### C plus plus program to add two polynomials using operator overloading?

#include<iostream> #include<conio.h> #include<math.h> using namespace std; class Polynomial { private: public: int degree() { } Polynomial addition(const Polynomial &p) { } Polynomial sub(const Polynomial &p) { } Polynomial multiply(const Polynomial&p) { } bool equal(const Polynomial&p) { } void read() { } void print() { void read(); } int evaluate(int x) { } }; main() { int n; do { cout<<"What would you like to do?"<<"\n"; cout<<"------------------------------------"<<endl; cout<<"1.Give a value to a polynomial(print the polynomial}"<<"\n"; cout<<"2.Add…

### Why it is not possible to add two polynomials of degree 3 and get a polynomial of 4?

When you add polynomials, you simply add the coefficients of the variable taken to the same degree. For example (x3 + 2x2 + 3x + 4) added to (2x3 - 4x2 + x -2) would give you [(1+2)x3 + (2-4)x2 + (3+1)x + (4-2)] or 3x3 - 2x2 + 4x + 2 You would get a fourth degree polynomial by multiplying this one by x. Another way to think of it: If you add 1…

### How do you Add two polynomial using a link list in c plus plus?

Linked lists are a good way to represent polynomials. The coefficients of each term would be a node in the linked list, with the first node representing X0 and each successive node representing the next higher power of X; X1, X2, etc.. To add two polynomials, you simply add the coefficients of like terms. To add linked lists, you simply add the values of like orders, i.e. you would add the first nodes together, the…

### Is it always true that the zeros of the derivative and the zeros of the polynomial always alternate in location along the horizontal axis?

A zero of the derivative will always appear between two zeroes of the polynomial. However, they do not always alternate. Sometimes two or more zeroes of the derivative will occur between two zeroes of a polynomial. This is often seen with quartic or quintic polynomials (polynomials with the highest exponent of 4th or 5th power).

### Explain the FOIL method of multiplying polynomials?

The FOIL method is used to multiply together two polynomials, each consisting of two terms. In general the polynomials could be of any degree and each could contain a number of variables. However, FOIL is generally used for two monomials in one variable; that is (ax + b) and (cx + d) To multiply these two monomials together - F = Multiply together the FIRST term of each bracket: ax * cx = acx2 O…

### What are the numbers when you add you get -3 when multiplied you get 40?

There are no two real numbers that do. Using complex numbers, these two do: (-3/2 + i√151/2) & (-3/2 - i√151/2) Two numbers that add to -3 and multiply to -40 are -8 & 5 Two numbers that add to 3 and multiply to -40 are 8 & -5 Two complex numbers that add to 3 and multiply to 40 are (3/2 + i√151/2) & (3/2 - i√151/2)