Re: Error in processing Complex arguments in trig functions
Hrm.. not on my version ..
CL-USER 1 > (acos #C(2 -0.0))
Error: Arithmetic error in COMPLEX of (#C(0.0D0 0.7071067811865476D0)):
Arguments must be real numbers.
1 (continue) Return a value to use.
2 (abort) Return to level 0.
3 Return to top loop level 0.
Type :b for backtrace, :c <option number> to proceed, or :? for other
options
--jon
On Oct 15, 2004, at 15:40, Raymond C Laning wrote:
>
>
>
>
> Hello,
>
> I observed the same behavior, but note that
> #C(real imag) works fine
> The #C macro reader is case sensitive.
> HTH,
>
> Ray Laning
>
>
>
>
> Jon Allen Boone
> <ipmonger@delama To:
> lisp-hug@xanalys.com
> ncha.org> cc: Jon Allen
> Boone <ipmonger@delamancha.org>
> Sent by: Subject: Error in
> processing Complex arguments in trig functions
> owner-lisp-hug@x
> analys.com
>
>
> 10/15/2004 10:42
> AM
> Please respond
> to Jon Allen
> Boone
>
>
>
>
>
>
> Folks,
>
> Here's the problem:
> CL-USER 1 > (acos #c(2 +0.0))
>
> Error: Arithmetic error in COMPLEX of (#C(0.0D0 0.7071067811865476D0)):
> Arguments must be real numbers.
> 1 (continue) Return a value to use.
> 2 (abort) Return to level 0.
> 3 Return to top loop level 0.
>
> Type :b for backtrace, :c <option number> to proceed, or :? for other
> options
>
> CL-USER 2 : 1 :c3
> :C3
>
> CL-USER 3 : 1 > :c 3
>
> CL-USER 4 > (acos #c(2 0))
> #C(0.0 1.316958)
>
> CL-USER 5 > (acos #c(2.0 0))
>
> Error: Arithmetic error in COMPLEX of (#C(0.0D0 0.7071067811865476D0)):
> Arguments must be real numbers.
> 1 (continue) Return a value to use.
> 2 (abort) Return to level 0.
> 3 Return to top loop level 0.
>
> Type :b for backtrace, :c <option number> to proceed, or :? for other
> options
>
> CL-USER 6 : 1 > :c 3
>
> CL-USER 7 > (acos #c(2 0.0))
>
> Error: Arithmetic error in COMPLEX of (#C(0.0D0 0.7071067811865476D0)):
> Arguments must be real numbers.
> 1 (continue) Return a value to use.
> 2 (abort) Return to level 0.
> 3 Return to top loop level 0.
>
> Type :b for backtrace, :c <option number> to proceed, or :? for other
> options
>
> CL-USER 8 : 1 > :c 3
>
> CL-USER 9 > (acos #c(2.0 0.0))
>
> Error: Arithmetic error in COMPLEX of (#C(0.0D0 0.7071067811865476D0)):
> Arguments must be real numbers.
> 1 (continue) Return a value to use.
> 2 (abort) Return to level 0.
> 3 Return to top loop level 0.
>
> Type :b for backtrace, :c <option number> to proceed, or :? for other
> options
>
> CL-USER 10 : 1 > :c 3
>
> CL-USER 11 >
>
>
>
>