I\'ve written a Lisp function like this:
(defun power (base exponent) (if (= exponent 0) 1 (* base (power (- exponent 1)))))
Wh
The recursive call is your problem. You forgot to pass the base in as the first argument.
(* base (power (- exponent 1)))))
should be:
(* base (power base (- exponent 1)))))