Unary function

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


This article is issued from Wikipedia - version of the Wednesday, March 19, 2014. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.