This document defines functions for creating, representing, and solving polynomial expressions as linked lists of terms. The create_poly function takes in a list of coefficient and power pairs and returns the polynomial as a linked list head node. The show_poly function prints out a polynomial linked list in standard form. The solve function takes in two polynomial linked lists and returns their sum by iterating through the lists and combining like terms.
This document defines functions for creating, representing, and solving polynomial expressions as linked lists of terms. The create_poly function takes in a list of coefficient and power pairs and returns the polynomial as a linked list head node. The show_poly function prints out a polynomial linked list in standard form. The solve function takes in two polynomial linked lists and returns their sum by iterating through the lists and combining like terms.
This document defines functions for creating, representing, and solving polynomial expressions as linked lists of terms. The create_poly function takes in a list of coefficient and power pairs and returns the polynomial as a linked list head node. The show_poly function prints out a polynomial linked list in standard form. The solve function takes in two polynomial linked lists and returns their sum by iterating through the lists and combining like terms.