DSAprg9 2nd
DSAprg9 2nd
(SCLL)
with header nodes
a. Represent and Evaluate a Polynomial P(x,y,z) = 6x^2y^2z - 4yz^5 + 3x^3yz +
2xy^5z - 2xyz^3
b. Find the sum of two polynomials POLY1(x,y,z) and POLY2(x,y,z) and store the
result in POLYSUM(x,y,z)
Support the program with appropriate functions for each of the above operations
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
// Main function
int main() {
Node *POLY1 = NULL, *POLY2 = NULL, *POLYSUM = NULL;
printf("POLY1: ");
displayPolynomial(POLY1);
printf("POLY2: ");
displayPolynomial(POLY2);
return 0;
}