Opened 12 years ago

Closed 12 years ago

#953 closed enhancement (fixed)

Numbers-egg version of signum should accept complex numbers

Reported by: johnwcowan Owned by: sjamaan
Priority: major Milestone: someday
Component: extensions Version: 4.8.x
Keywords: Cc:
Estimated difficulty:


Common Lisp defines signum on a non-real number as returning a complex number whose angle is the same as the angle of the argument but whose magnitude is 1. This degenerates to the standard definition for real numbers.

No change is needed to the standard version.

Change History (2)

comment:1 Changed 12 years ago by sjamaan

Owner: set to sjamaan
Status: newaccepted

comment:2 Changed 12 years ago by sjamaan

Resolution: fixed
Status: acceptedclosed

Fixed in revision [27997]. Thanks for pointing this out!

I haven't tagged a release yet since this seems pretty trivial, so this is available only in trunk right now. It will appear in the next release though!

Note: See TracTickets for help on using tickets.