Unary operations are operations that involve only one operand. In mathematics and programming, a unary operation takes a single input and performs a specific computation or transformation on it. Common examples of unary operations include: 1. **Negation (-)**: This operation takes a number and changes its sign. For example, applying negation to the number 5 results in -5. 2. **Square (x²)**: This operation takes a number and squares it.
New to topics? Read the docs here!