Atom - - Sign / Conjugate

Characters:

Tags: math , number , vectorize , complex

Arity: monadic

This atom is monadic, which means it takes one argument.

Functionality

Return the sign (real), return the conjugate (complex).

Details

For real numbers, if the number is positive, return 1, if it is negative, return -1, and otherwise, return 0. For a complex number a + bi, return a - bi (the complex conjugate).