Browse Source

Fixed power

Samuel W. Flint 8 years ago
parent
commit
149683b32d
1 changed files with 2 additions and 2 deletions
  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 ,(derive equation) ,(1- power)))
-        `(* ,power (expt ,equation ,(1- power))))))
+        `(* ,power (expt ,equation (1- ,power)) ,(derive equation))
+        `(* ,power (expt ,equation (1- ,power))))))
 
 (defun csc (x)
   "csc -- (csc x)