Skip to content
Snippets Groups Projects
Commit cf52846d authored by ram's avatar ram
Browse files

Fixed EXPT to handle double-float x ratio combination.

parent 41c95648
No related branches found
No related tags found
No related merge requests found
...@@ -7,11 +7,11 @@ ...@@ -7,11 +7,11 @@
;;; Scott Fahlman or slisp-group@cs.cmu.edu. ;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;; ;;;
(ext:file-comment (ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/irrat.lisp,v 1.7 1991/02/08 13:33:39 ram Exp $") "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/irrat.lisp,v 1.8 1991/09/04 14:26:37 ram Exp $")
;;; ;;;
;;; ********************************************************************** ;;; **********************************************************************
;;; ;;;
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/irrat.lisp,v 1.7 1991/02/08 13:33:39 ram Exp $ ;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/irrat.lisp,v 1.8 1991/09/04 14:26:37 ram Exp $
;;; ;;;
;;; This file contains all the irrational functions. Actually, most of the ;;; This file contains all the irrational functions. Actually, most of the
;;; work is done by calling out to C... ;;; work is done by calling out to C...
...@@ -153,9 +153,9 @@ ...@@ -153,9 +153,9 @@
(number-dispatch ((base number) (power number)) (number-dispatch ((base number) (power number))
(((foreach fixnum (or bignum ratio) (complex rational)) integer) (((foreach fixnum (or bignum ratio) (complex rational)) integer)
(intexp base power)) (intexp base power))
(((foreach single-float double-float) integer) (((foreach single-float double-float) rational)
(real-expt base power '(dispatch-type base))) (real-expt base power '(dispatch-type base)))
(((foreach fixnum (or bignum ratio) single-float) (((foreach fixnum (or bignum ratio))
(foreach ratio single-float)) (foreach ratio single-float))
(real-expt base power 'single-float)) (real-expt base power 'single-float))
(((foreach fixnum (or bignum ratio) single-float double-float) (((foreach fixnum (or bignum ratio) single-float double-float)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment