|
|
|
|
|
|
1
|
# LISP Polynomial Calculator
|
1
|
# LISP Polynomial Calculator
|
|
|
|
2
|
+
|
|
2
|
* A simple polynomial calculator in lisp
|
3
|
* A simple polynomial calculator in lisp
|
|
|
|
4
|
+
|
|
3
|
* Polynomials are in the form
|
5
|
* Polynomials are in the form
|
|
4
|
'(((SYMBOL EXPONENT) MULTIPLIER) ((SYMBOL EXPONENT) MULTIPLIER))
|
6
|
'(((SYMBOL EXPONENT) MULTIPLIER) ((SYMBOL EXPONENT) MULTIPLIER))
|
|
|
|
7
|
+
|
|
5
|
* For example this:
|
8
|
* For example this:
|
|
6
|
'(((x 2) 5) ((((x y) (2 3)) 5))) \= 5x^2 + 5x^2y^3
|
9
|
'(((x 2) 5) ((((x y) (2 3)) 5))) \= 5x^2 + 5x^2y^3
|
|
|
|
10
|
+
|