0% found this document useful (0 votes)
6 views3 pages

Document 1

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views3 pages

Document 1

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

~~~~Menu~~

1. Represent and Evaluate a Polynomial P(x,y,z)

2. Find the Sum of Two Polynomials POLY1(x,y,z)

Enter your choice: 1

~~~Polynomial Evaluation P(x,y,z)~~~

Enter the no of terms in the polynomial: 5

Enter the 1 term: Coef = 6

Enter Pow(x) Pow(y) and Pow(z): 221

Enter the 2 term: Coef = -4

Enter Pow(x) Pow(y) and Pow(z): 015

Enter the 3 term: Coef = 3

Enter Pow(x) Pow(y) and Pow(z): 3 1 1

Enter the 4 term: Coef = 2

Enter Pow(x) Pow(y) and Pow(z): 151

Enter the 5 term: Coef = -2

Enter Pow(x) Pow(y) and Pow(z): 113

Representation of Polynomial for Evaluation:

6x^2y^2z^1 + 4x^0y^1z^5 + 3x^3y^1z^1 + 2x^1y^5z^1 + 2x^1y^1z^3

Enter the value of x, y, and z: 111

Result of Polynomial Evaluation: 5

~~~Menu~~~

1. Represent and Evaluate a Polynomial P(x,y,z)

2. Find the Sum of Two Polynomials POLY1(x,y,z)

Enter your choice: 2

Enter the POLY1(x,y,z):

Enter the no of terms in the polynomial: 5

Enter the 1 term: Coef = 6

Enter Pow(x) Pow(y) and Pow(z): 444


Enter the 2 term:

sunp@sunp-Yoga-Pro-7-14IRH8: ~/dev/c-programs

Coef = 2

Enter Pow(x) Pow(y) and Pow(z): 4 3 1

Enter the 3 term:

Coef = 5

Enter Pow(x) Pow(y) and Pow(z): 011

Enter the 4 term:

Coef = 10

Enter Pow(x) Pow(y) and Pow(z): 010

Enter the 5 term:

Coef = 5

Enter Pow(x) Pow(y) and Pow(z): 000

Polynomial 1 is:

6x^4y^4z^4 + 2x^4y^3z^1 + 5x^0y^1z^1 + 10x^0y^1z^0 + 5x^0^0^0

Enter the POLY2(x,y,z):

Enter the no of terms in the polynomial: 5

Enter the 1 term:

Coef = 8

Enter Pow(x) Pow(y) and Pow(z): 444

Enter the 2 term:

Coef = 4

Enter Pow(x) Pow(y) and Pow(z): 4 2 1

Enter the 3 term: Coef = 30

Enter Pow(x) Pow(y) and Pow(z): 010

Enter the 4 term: Coef = 20

Enter Pow(x) Pow(y) and Pow(z): 001

Enter the 5 term: Coef = 3

Enter Pow(x) Pow(y) and Pow(z): 000


Polynomial 2 is:

8x^4y^4z^4 + 4x^4y^2z^1 + 30x^0y^1^0 + 20x^0y^0^1 + 3x^0^0^0

Polynomial Addition Result:

14x^4y^4z^4 + 2x^4y^3z^1 + 4x^4y^2z^1 + 5x^0y^1z^1 + 40x^0y^1z^0 + 20x^0y^0z^1 + 8x^0^0^0

~~~Menu~~~

1. Represent and Evaluate a Polynomial P(x,y,z)

2. Find the Sum of Two Polynomials POLY1(x,y,z)

Enter your choice: ^C

sunp@sunp-Yoga-Pro-7-14IRH8:~/dev/c-programs$

You might also like