Wolfgang (>): > There is a definition for the signum function for a complex argument. > > sign( z ) = z / |z| for all z != 0 > sign( 0 ) = 0 > > See e.g. http://en.wikipedia.org/wiki/Sign_function > > Shouldn't be too difficult to implement.
It isn't, and note that I also proposed it in my first email. I guess the question is more about the programmer's expectations. Is this a case where we serve the programmer better by returning Failure, or by generalizing the C<sign> function to the complex plane?