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.
A bound variable is a variable that was previously free, but has been bound to a specific value or set of values called domain of discourse or universe. For example, the variable x becomes a bound variable when we write:

For all x, (x + 1)2 = x2 + 2x + 1.
or

There exists x such that x2 = 2.
In either of these propositions, it does not matter logically whether x or some other letter is used. However, it could be confusing to use the same letter again elsewhere in some compound proposition. That is, free variables become bound, and then in a sense retire from being available as stand-in values for other values in the creation of formulae.
The term "dummy variable" is also sometimes used for a bound variable (more often in general mathematics than in computer science), but that use can create an ambiguity with the definition of dummy variables in regression analysis.

View More On Wikipedia.org
  • 2165

    Greg Bernhardt

    A PF Singularity From USA
    • Messages
      19,443
    • Media
      227
    • Reaction score
      10,021
    • Points
      1,237
  • 2

    RooksAndBooks

    A PF Molecule From USA
    • Messages
      27
    • Media
      86
    • Albums
      1
    • Reaction score
      50
    • Points
      76
  • 2

    WWCY

    A PF Atom
    • Messages
      479
    • Reaction score
      12
    • Points
      48
  • 1

    Chenkel

    A PF Atom
    • Messages
      482
    • Reaction score
      108
    • Points
      38
  • 1

    RoboNerd

    A PF Atom
    • Messages
      410
    • Reaction score
      11
    • Points
      28
  • 1

    Rev. Cheeseman

    A PF Atom
    • Messages
      254
    • Reaction score
      11
    • Points
      48
  • 1

    ecastro

    A PF Molecule From Philippines
    • Messages
      254
    • Reaction score
      8
    • Points
      76
  • 1

    Stormblessed

    A PF Electron
    • Messages
      24
    • Reaction score
      2
    • Points
      11
  • 1

    mertcan

    A PF Molecule
    • Messages
      344
    • Reaction score
      6
    • Points
      84
  • 1

    Simon George

    A PF Quark
    • Messages
      7
    • Reaction score
      0
    • Points
      4
  • 1

    AligatorAmy

    A PF Quark
    • Messages
      28
    • Reaction score
      1
    • Points
      1
  • 1

    Cathr

    A PF Atom
    • Messages
      67
    • Reaction score
      3
    • Points
      33
  • 1

    nyla

    A PF Quark
    • Messages
      1
    • Reaction score
      0
    • Points
      1
  • 1

    chwala

    A PF Organism 45 From Nairobi, Kenya.
    • Messages
      2,650
    • Reaction score
      351
    • Points
      167
  • 1

    Debdut

    A PF Atom
    • Messages
      19
    • Reaction score
      2
    • Points
      33
  • 1

    Niaboc67

    A PF Electron
    • Messages
      249
    • Reaction score
      3
    • Points
      16
  • 1

    paulb203

    A PF Electron From England, UK
    • Messages
      64
    • Reaction score
      24
    • Points
      13
  • 1

    RandomAllTime

    A PF Quark
    • Messages
      26
    • Reaction score
      0
    • Points
      1
  • 1

    Physics2.0

    A PF Electron
    • Messages
      8
    • Reaction score
      0
    • Points
      14
  • 1

    docnet

    A PF Molecule From Remote
    • Messages
      697
    • Reaction score
      348
    • Points
      96
  • Back
    Top