Hi, I am new here. I am taking a class for my senior year for my BS. Our last project is to create a Polynomial calculator in CLISP. I am having trouble with one aspect of it.
Polynomials are represented as lists of lists ex: 7x^2 - 3x + 4 would be '((7 X 2) (-3 X 1) (4 X 0))
So I need to make a function that adds two polynomials
ex:
(add-poly '((6 X 7) (3 X 1) (4 X 0)) '((2 X 2) (-3 X 1) (3 X 0)))
would give me: ((6 X 7) (2 X 2) (7 X 0))
I am not sure how to start on this. I have tried a few things but nothing seems to work. Any advice?
