Procházet zdrojové kódy

Fixed a minor issue

Samuel W. Flint před 8 roky
rodič
revize
235e1ffe2a
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  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)