瀏覽代碼

Added a simple trigonometric classification

Samuel W. Flint 9 年之前
父節點
當前提交
47a6388e75
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      manipulation.org

+ 4 - 0
manipulation.org

@@ -406,6 +406,10 @@ This is used to classify "powers", that is to say, equations of the form $x^n$,
 #+Caption: Classify Trigonometrics
 #+Name: classify-trigonometrics
 #+BEGIN_SRC lisp
+  (define-classification trigonometric
+    (when (classified-as-p expression 'non-atomic)
+      (member (first expression) '(sin cos tan csc sec cot))))
+
   (define-classification sin
     (when (classified-as-p expression 'non-atomic)
       (eq 'sin (first expression))))