소스 검색

Fixed a minor issue

Samuel W. Flint 8 년 전
부모
커밋
235e1ffe2a
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      derive.lisp

+ 2 - 2
derive.lisp

@@ -99,8 +99,8 @@ Apply the Power Rule"
   (let ((equation (nth 0 eq))
         (power (nth 1 eq)))
     (if (listp equation)
-        `(* ,power (expt ,equation (1- ,power)) ,(derive equation))
-        `(* ,power (expt ,equation (1- ,power))))))
+        `(* ,power (expt ,equation ,(1- power)) ,(derive equation))
+        `(* ,power (expt ,equation ,(1- power))))))
 
 (defun csc (x)
   "csc -- (csc x)