瀏覽代碼

Make functions smaller

Matt Coles 10 年之前
父節點
當前提交
3803026929
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      poly.cl

+ 3 - 3
poly.cl

1
 (defun poly+ (poly1 poly2)
1
 (defun poly+ (poly1 poly2)
2
   (add-terms poly1 poly2))
2
   (add-terms poly1 poly2))
3
 
3
 
4
-(defun find-variable-symbol (single-poly)
4
+(defun variable-symbol (single-poly)
5
   (car (car (car single-poly))))
5
   (car (car (car single-poly))))
6
 
6
 
7
-(defun find-exponent (single-poly)
7
+(defun exponent (single-poly)
8
   (cdr (car (car single-poly))))
8
   (cdr (car (car single-poly))))
9
 
9
 
10
-(defun find-multiplier (single-poly)
10
+(defun multiplier (single-poly)
11
   (cdr (car single-poly)))
11
   (cdr (car single-poly)))
12
 
12
 
13
 (defun is-single-poly (var-poly)
13
 (defun is-single-poly (var-poly)