I need to store polynomials in my lisp program for addition, subtraction and multiplication. But can not find a simple way to store it.
I examined the following path
(2x ^ 3 + 2x + 4y ^ 3 - 2z) in the list of lists, where each list is a list of the quantities of each capacity
= ((0 2 0 2) (0 0 0 4) (0 2))
But the indefinite length of each list and the potential length can be a problem.
Is there a generally accepted way to store them in lisp that can make it as simple as possible to add, subtract, and multiply them together?
source
share