variables

In mathematics, and in other disciplines involving formal languages, including mathematical logic and computer science, a free variable is a notation (symbol) that specifies places in an expression where substitution may take place and is not a parameter of this or any container expression. Some older books use the terms real variable and apparent variable for free variable and bound variable, respectively. The idea is related to a placeholder (a symbol that will later be replaced by some value), or a wildcard character that stands for an unspecified symbol.
In computer programming, the term free variable refers to variables used in a function that are neither local variables nor parameters of that function. The term non-local variable is often a synonym in this context.
An instance of a variable symbol is bound, in contrast, if the value of that variable symbol has been bound to a specific value or range of values in the domain of discourse or universe. This may be achieved through the use of logical quantifiers, variable-binding operators, or an explicit statement of allowed values for the variable (such as, "...where



n


{\displaystyle n}
is a positive integer".) A variable symbol overall is bound if at least one occurrence of it is bound.pp.142--143 Since the same variable symbol may appear in multiple places in an expression, some occurrences of the variable symbol may be free while others are bound,p.78 hence "free" and "bound" are at first defined for occurrences and then generalized over all occurrences of said variable symbol in the expression. However it is done, the variable ceases to be an independent variable on which the value of the expression depends, whether that value be a truth value or the numerical result of a calculation, or, more generally, an element of an image set of a function.
Note that while the domain of discourse in many contexts is understood, when an explicit range of values for the bound variable has not been given, it may be necessary to specify the domain in order to properly evaluate the expression. For example, consider the following expression in which both variables are bound by logical quantifiers:

This expression evaluates to false if the domain of



x


{\displaystyle x}
and



y


{\displaystyle y}
is the real numbers, but true if the domain is the complex numbers.
The term "dummy variable" is also sometimes used for a bound variable (more commonly in general mathematics than in computer science), but this should not be confused with the identically named but unrelated concept of dummy variable as used in statistics, most commonly in regression analysis.

You do not have permission to view the full content of this post. Log in or register now.
  1. C

    Help Mapeh

    The level of awareness on Philippine native games among bsed- mapeh students 1. Topic Being Investigated: 2. Variables of the Study: 3. Sources of Data: 4. Sampling Procedures: 5. Research Environment: 6. Type of Research Method and Design: 7. Research Instruments: 8. Expected Duration of...
  2. L

    Course [UDEMY] - Python Development & Data Science: Variables and Data Types

    Grab na guys habang available pa. just please hit react button for more sharing Hidden content Take note that this is limited time only pa feed back if okay pa yung link thanks! 😁
  3. A

    Help Assignment

    The following statements are true about regression analysis EXCEPT a. It is a test of difference among variables. b. It tests the strength of relationship between variables. c. It is used to determine if significant predictor exists d. It is a non-parametric test.
Back
Top