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: Parametric Operator
Famous quotes containing the words computer and/or science:
“The Buddha, the Godhead, resides quite as comfortably in the circuits of a digital computer or the gears of a cycle transmission as he does at the top of a mountain or in the petals of a flower.”
—Robert M. Pirsig (b. 1928)
“The natural historian is not a fisherman who prays for cloudy days and good luck merely; but as fishing has been styled a contemplative mans recreation, introducing him profitably to woods and water, so the fruit of the naturalists observations is not in new genera or species, but in new contemplations still, and science is only a more contemplative mans recreation.”
—Henry David Thoreau (18171862)