Skip to content
Snippets Groups Projects
Commit 65c95770 authored by toy's avatar toy
Browse files

Give a better error message for atan when given an arg that isn't

REAL in the two arg case.
parent 43f22163
No related branches found
No related tags found
No related merge requests found
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
;;; Carnegie Mellon University, and has been placed in the public domain. ;;; Carnegie Mellon University, and has been placed in the public domain.
;;; ;;;
(ext:file-comment (ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/irrat.lisp,v 1.32 2001/04/16 16:13:56 toy Exp $") "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/irrat.lisp,v 1.33 2002/09/05 16:13:46 toy Exp $")
;;; ;;;
;;; ********************************************************************** ;;; **********************************************************************
;;; ;;;
...@@ -508,7 +508,8 @@ ...@@ -508,7 +508,8 @@
(float-sign y pi)) (float-sign y pi))
(float-sign y (/ pi 2))) (float-sign y (/ pi 2)))
(%atan2 y x)))) (%atan2 y x))))
(number-dispatch ((y number) (x number)) ;; If X is given, both X and Y must be real numbers.
(number-dispatch ((y real) (x real))
((double-float ((double-float
(foreach double-float single-float fixnum bignum ratio)) (foreach double-float single-float fixnum bignum ratio))
(atan2 y (coerce x 'double-float))) (atan2 y (coerce x '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