Parameter - Computer Science

Computer Science

When the terms formal parameter and actual parameter are used, they generally correspond with the definitions used in computer science. In the definition of a function such as

f(x) = x + 2,

x is a formal parameter. When the function is used as in

y = f(3) + 5 or just the value of f(3),

3 is the actual parameter value that is substituted for the formal parameter in the function definition. These concepts are discussed in a more precise way in functional programming and its foundational disciplines, lambda calculus and combinatory logic.

In computing, parameters are often called arguments, and the two words are used interchangeably. However, some computer languages such as C define argument to mean actual parameter (i.e., the value), and parameter to mean formal parameter.

Read more about this topic:  Parameter

Famous quotes containing the words computer and/or science:

    The analogy between the mind and a computer fails for many reasons. The brain is constructed by principles that assure diversity and degeneracy. Unlike a computer, it has no replicative memory. It is historical and value driven. It forms categories by internal criteria and by constraints acting at many scales, not by means of a syntactically constructed program. The world with which the brain interacts is not unequivocally made up of classical categories.
    Gerald M. Edelman (b. 1928)

    What an admirable training is science for the more active warfare of life! Indeed, the unchallenged bravery which these studies imply, is far more impressive than the trumpeted valor of the warrior.
    Henry David Thoreau (1817–1862)