VARIABLE

Derived from the Latin term variabilis , variable is a word that represents that which varies or is subject to some type of change. It is something that is characterized by being unstable , fickle and changeable . In other words, a variable is a symbol that identifies an unspecified element within a certain group. This set is usually defined as the universal set of the variable ( universe of the variable , on other occasions), and each piece included in it constitutes a value of the variable.

Variable

For example: x is a variable in the universe { 1 , 3 , 5 , 7 }. Therefore, x can be equal to any of the values ​​just mentioned, with which it is possible to replace x with any odd number that is less than 8 .

As you can see, variables are elements present in formulas, propositions and algorithms, which can be substituted or can acquire, without ceasing to belong to the same universe, different values. It is worth mentioning that the values ​​of a variable can be framed within a range or be limited by membership situations.

We can speak of different types of variable: dependent variables , which are those that depend on the value assigned to other phenomena or variables; the independent variables , whose value changes influence the values of the other; Random variables are the functions that associate a real number with each element of a set E.

In another classification it can be said that there are qualitative variables , which express different qualities, characteristics or modalities, and quantitative variables , which are stated by numerical quantities, among others. Within the qualitative variables there are nominal variables (those that are not numeric and cannot be ordered either, such as marital status) and ordinal or quasi-quantitative variables (they are non-numerical but they do allow to be ordered, such as the exam grade) . For their part, quantitative variables can be discrete (it does not allow intermediate values ​​but exact numbers, for example the number of siblings of a person) or continuous (those that accept intermediate values ​​between two numbers, for example weight or height measurements).

VariableIn the field of programming ( computer science ), variables are data structures that can change their content throughout the execution of a program. These structures correspond to a reserved area in the main memory of the computer .

The programmer assigns a label to each variable that allows him to recognize it from the rest, so whenever he needs to, he can call that variable and it will come with the value that has been assigned to it. For example, if the variable is named "num" and is stored with the number 7. If the programmer wanted to use it, he could program: num = num + 1 and he will get a result that precedes said variable.
In programming, variables are classified differently, there are Boolean, floating point decimal, array, matrix and random types, among others.

Variables are the basis of programming , they respond to a language and allow the programmer to carry out the work in an orderly and efficient way. The sum of the variables are those that result in a certain action in a program and they always respond to the wishes of the programmer. This means that outside of an engine or the code of a certain program, these variables can mean something else and therefore their sum will be different, because each programmer can assign the values ​​they want to each of the variables in their code.

Finally, it should be mentioned that, in astronomy , variable stars are those that experience significant variations in luminosity.

Comments

Popular posts from this blog

CONCEIT

ABBOT