瀏覽代碼

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)))