Jump to content

Unary function

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by 28bytes (talk | contribs) at 05:55, 19 March 2014 (See also: rm link to nonexistent article). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

A unary function is a function that takes one argument. In computer science, a unary operator is a subset of unary function.

Example :- a++ here a is an operand which is operated by a unary operator++. it can be written in the form a=a+1. Many of the elementary functions are unary functions, in particular the trigonometric functions, logarithm with a pre-specified base, exponentiation to a pre-specified power or from a pre-specified base, and hyperbolic function are unary.

See also

References

Example :- a++ means a is an operand which is operated by a unary operator++. it can be written in this form: a++ = a + 1