variable quantity - Hutchinson encyclopedia article about variable quantity Printer Friendly
Dictionary, Encyclopedia and Thesaurus - The Free Dictionary
1,740,580,295 visitors served.
forum mailing list For webmasters
?
New: Language forums
Dictionary/
thesaurus
Medical
dictionary
Legal
dictionary
Financial
dictionary
Acronyms
 
Idioms
Encyclopedia
Wikipedia
encyclopedia
?

variable
(redirected from variable quantity)

   Also found in: Dictionary/thesaurus, Encyclopedia, Wikipedia 0.03 sec.

variable

In mathematics, a changing quantity (one that can take various values), as opposed to a constant. For example, in the algebraic expression y = 4x3 + 2, the variables are x and y, whereas 4 and 2 are constants.

A variable may be dependent or independent. Thus if y is a function of x, written y = f(x), such that y = 4x3 + 2, the domain of the function includes all values of the independent variable x while the range (or co-domain) of the function is defined by the values of the dependent variable y.

variable

In computing, a quantity that can take different values. Variables can be used to represent different items of data in the course of a program.

A computer programmer will choose a symbol to represent each variable used in a program. The computer will then automatically assign a memory location to store the current value of each variable, and use the chosen symbol to identify this location.

For example, the letter P might be chosen by a programmer to represent the price of an article. The computer would automatically reserve a memory location with the symbolic address P to store the price being currently processed.

Different programming languages place different restrictions on the choice of symbols used to represent variables. Some languages only allow a single letter followed, where required, by a single number. Other languages allow a much freer choice, allowing, for example, the use of the full word ‘price’ to represent the price of an article.

A global variable is one that can be accessed by any program instruction; a local variable is one that can only be accessed by the instructions within a particular subroutine.



How to thank TFD for its existence? Tell a friend about us, add a link to this page, add the site to iGoogle, or visit webmaster's page for free fun content.
?Page tools
Printer friendly
Cite / link
Email
Feedback
?Sign in SSL protected
Email:
Password:
Register

? Mentioned in
 
Hutchinson browser? ? Full browser
 
 
Hutchinson Encyclopedia
?

Disclaimer | Privacy policy | Feedback | Copyright © 2009 Farlex, Inc.
All content on this website, including dictionary, thesaurus, literature, geography, and other reference data is for informational purposes only. This information should not be considered complete, up to date, and is not intended to be used in place of a visit, consultation, or advice of a legal, medical, or any other professional. Terms of Use.