Computer Science, asked by PranitaSharma9522, 20 hours ago

What are unary operators. Give examples.

Answers

Answered by itzstylishbandi
0

Answer:

  \huge\bigstar{ \underline{{ \red{a}{ \pink{n}{ \color{blue}{s}{ \color{gold}{w}{ \color{aqua}{e}{ \color{lime}{r}}}}}}}}} \huge \bigstar

In mathematics, a unary operation is an operation with only one operand, i.e. a single input.[1] This is in contrast to binary operations, which use two operands.[2] An example is the function f : A → A, where A is a set. The function f is a unary operation on A.

Common notations are prefix notation (e.g. +, −, ¬), postfix notation (e.g. factorial n!), functional notation (e.g. sin x or sin(x)), and superscripts (e.g. transpose AT). Other notations exist as well. For example, in the case of the square root, a horizontal bar extending the square root sign over the argument can indicate the extent of the argument

Similar questions