Summary
Numbers-egg version of signum should accept complex numbers
Metadata
- Id: 97bb092142af673d3c4a0e225254f527b165e458
- Trac id: 953
- Type: enhancement
- Reporter: johnwcowan
- Owner: sjamaan
- Cc:
- Status: closed
- Component: extensions
- Estimated difficulty:
- Resolution: fixed
- Priority: major
- Milestone: someday
- Version: 4.8.x
- Changetime: 2012-12-23 19:16:17 UTC
- Created: 2012-11-29 00:20:40 UTC
- Keywords:
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.
Changes and comments
[2012-11-29 09:03:15 UTC] sjamaan changed status from new to accepted
[2012-11-29 09:03:15 UTC] sjamaan set owner to sjamaan
[2012-12-23 19:16:17 UTC] sjamaan changed status from accepted to closed
[2012-12-23 19:16:17 UTC] sjamaan set resolution to fixed
[2012-12-23 19:16:17 UTC] sjamaan wrote:
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!