Opened 3 years ago

Closed 3 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:

Description

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 3 years ago by sjamaan

  • Owner set to sjamaan
  • Status changed from new to accepted

comment:2 Changed 3 years ago by sjamaan

  • Resolution set to fixed
  • Status changed from accepted to closed

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.