Explorar el Código

Fixed a minor issue

Samuel W. Flint hace 8 años
padre
commit
235e1ffe2a
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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)