Unary function

A unary function is a function that takes one argument. A unary operator belongs to a subset of unary functions, in that its range coincides with its domain.

Examples

The successor function, denoted , is a unary operator. Its domain and codomain are the natural numbers, its definition is as follows:

In many programming languages such as C, executing this operation is denoted by postfixing to the operand, i.e. the use of is equivalent to executing the assignment .

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 of a pre-specified base, and hyperbolic functions are unary.

gollark: At best, as Wojbie said, you can make it annoying for people, but then one person will do it and share how.
gollark: You just *cannot* give people access to a thing in one way and expect them to not be able to access it in some other way. Basically every DRM scheme - which this really sounds like - has *failed, inevitably*.
gollark: As Grim Reaper said: if there is *any* important data there or something, *people will get it out* eventually.
gollark: Also, some platforms might not like bytecode.
gollark: <@222831168486113281> Please don't do "security" through obscurity ever.

See also

References

This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.