소스 검색

Added a couple of conditions

Samuel W. Flint 9 년 전
부모
커밋
d9af31c54e
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      manipulation.org

+ 2 - 0
manipulation.org

@@ -584,6 +584,8 @@ Foo
 
   (defun get-power (term)
     (cond
+      ((classified-as-p term 'numeric) 0)
+      ((classified-as-p term 'variable) 1)
       ((classified-as-p term 'power) (third term))
       ((classified-as-p term 'polynomial-term) (third (third term)))
       (t 0)))