|
|
@@ -6,5 +6,24 @@
|
|
6
|
6
|
'(((SYMBOL EXPONENT) MULTIPLIER) ((SYMBOL EXPONENT) MULTIPLIER))
|
|
7
|
7
|
|
|
8
|
8
|
* For example this:
|
|
9
|
|
- '(((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
|
+
|
|
|
11
|
+* The functions that exist are poly+ poly- poly*
|
|
|
12
|
+
|
|
|
13
|
+Below you can see an example of the test output:
|
|
|
14
|
+ [25]> (load "tests.cl")
|
|
|
15
|
+ ;; Loading file tests.cl ...
|
|
|
16
|
+ ;; Loading file poly.cl ...
|
|
|
17
|
+ ;; Loaded file poly.cl
|
|
|
18
|
+ ;; Loaded file tests.cl
|
|
|
19
|
+ T
|
|
|
20
|
+ [26]> (run-tests)
|
|
|
21
|
+ 5x^2 + 3x^2 ... passed - simple addition
|
|
|
22
|
+ 5x^2+6y^2 + 3x^2+3y^2+4z^3 ... passed - complex addition
|
|
|
23
|
+ 5x^2 - 3x^2 ... passed - simple subtraction
|
|
|
24
|
+ 5x^2+6y^2 - 3x^2+3y^2+4z^3 ... passed - complex subtraction
|
|
|
25
|
+ 5x^2 * 5x^2 ... passed - simple multiplication
|
|
|
26
|
+ (5x^2+y^2) * (3x + y) ... passed - complex multiplication
|
|
|
27
|
+ T
|
|
|
28
|
+ [27]>
|
|
10
|
29
|
|