axiom-developer
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Axiom-developer] Left shifts of negative numbers


From: Page, Bill
Subject: RE: [Axiom-developer] Left shifts of negative numbers
Date: Tue, 14 Oct 2003 20:00:42 -0400

Dylan,

You wrote:

>...
> An alternative is
> 
>   shift(x,y) == -integer(ASH(-x,y)$LISP)
> 
> which might be clearer.
> 

I think

  shift(x,y) == sign(x)*integer(ASH(sign(x)*x,y)$Lisp

should be ok for all cases?

Bill Page.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]