Wikifunctions:Catalogue/Sign operations
Appearance

- same sign (Z16667): returns true if both inputs are identical signs
- different sign (Z16750): returns true if the two inputs are different signs
- invert sign (Z16676): Given a positive sign, returns negative, and vice versa. Neutral remains the same.
- sign non-negative (Z16756): returns false if the input is negative, otherwise true
- sign is non-positive (Z16768): returns true if the sign is either negative or neutral, otherwise positive
- multiply signs (Z16728): the sign of the product of two numbers with the input signs
- do these charges electrostatically attract? (Z16781): true only if one is negative and the other positive (or vice versa)
- do these charges electrostatically repel (Z16793): true only if the charges are of the same sign
- do these charges electrostatically interact (Z16897): True if neither input is neutral
- Boolean to Sign (Z17053): Return positive if true, or negative if false