D-Programming-Language/phobos — pull request #559 by kyllingstad (2012-05-01 10:09:36+00:00)
Title: std.complex update: added expi() and moved some functions to module level

I have just copied the implementation of `std.math.expi()` more or less verbatim. I don't know any assembler, so someone should check that the implementation is still valid when the function returns a struct as opposed to a built-in `creal`. I can't see why it shouldn't be, but you never know... Since there are several functions in `std.complex` now that are basically ripped from `std.math`, I have added Don as module author.

Furthermore, I have moved `abs()`, `arg()` and `conj()` down to module level. (They were previously properties of `Complex`.) This is mainly for consistency with `std.math`. Backwards compatibility is preserved thanks to the magic of UFCS. (Not that there is much compatibility to worry about; it doesn't seem like too many people are using this module yet.)