Namespaces
Variants
Actions

Difference between revisions of "Operand"

From Encyclopedia of Mathematics
Jump to: navigation, search
(Importing text file)
 
(Category:Numerical analysis and scientific computing)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 +
{{TEX|done}}
 
''in programming languages''
 
''in programming languages''
  
 
An argument of an operation; a grammatical construction signifying an expression that gives the value of the argument of an operation; sometimes the place or position in a text where the argument of an operation is to stand is called an operand. Hence the concept of arity of an operation, i.e. the number of arguments of an operation.
 
An argument of an operation; a grammatical construction signifying an expression that gives the value of the argument of an operation; sometimes the place or position in a text where the argument of an operation is to stand is called an operand. Hence the concept of arity of an operation, i.e. the number of arguments of an operation.
  
Depending on the position of the operand relative to the sign of the operation, one distinguishes between prefix (e.g. <img align="absmiddle" border="0" src="https://www.encyclopediaofmath.org/legacyimages/o/o068/o068320/o0683201.png" />), infix (e.g. <img align="absmiddle" border="0" src="https://www.encyclopediaofmath.org/legacyimages/o/o068/o068320/o0683202.png" />) and postfix (e.g. <img align="absmiddle" border="0" src="https://www.encyclopediaofmath.org/legacyimages/o/o068/o068320/o0683203.png" />) operations. Dependent on the number of operands there are one-placed (unary or monadic), two-placed (binary or dyadic) and many-placed (or polyadic) operations.
+
Depending on the position of the operand relative to the sign of the operation, one distinguishes between prefix (e.g. $\sin x$), infix (e.g. $a+b$) and postfix (e.g. $x^2$) operations. Dependent on the number of operands there are one-placed (unary or monadic), two-placed (binary or dyadic) and many-placed (or polyadic) operations.
  
 
In distinguishing between the position of the operand and the operand as an actual argument, the concept of transforming or coercing the operand to the form required by the operation arises. For example, if a real argument is situated in the position of an integer operand, the rules of the language may imply some method of rounding the real number to an appropriate natural number. Another example of coercion is variation of the form of the representation of an object, for example, a scalar is transformed to a vector consisting of one component.
 
In distinguishing between the position of the operand and the operand as an actual argument, the concept of transforming or coercing the operand to the form required by the operation arises. For example, if a real argument is situated in the position of an integer operand, the rules of the language may imply some method of rounding the real number to an appropriate natural number. Another example of coercion is variation of the form of the representation of an object, for example, a scalar is transformed to a vector consisting of one component.
 +
 +
[[Category:Numerical analysis and scientific computing]]

Latest revision as of 18:54, 19 October 2014

in programming languages

An argument of an operation; a grammatical construction signifying an expression that gives the value of the argument of an operation; sometimes the place or position in a text where the argument of an operation is to stand is called an operand. Hence the concept of arity of an operation, i.e. the number of arguments of an operation.

Depending on the position of the operand relative to the sign of the operation, one distinguishes between prefix (e.g. $\sin x$), infix (e.g. $a+b$) and postfix (e.g. $x^2$) operations. Dependent on the number of operands there are one-placed (unary or monadic), two-placed (binary or dyadic) and many-placed (or polyadic) operations.

In distinguishing between the position of the operand and the operand as an actual argument, the concept of transforming or coercing the operand to the form required by the operation arises. For example, if a real argument is situated in the position of an integer operand, the rules of the language may imply some method of rounding the real number to an appropriate natural number. Another example of coercion is variation of the form of the representation of an object, for example, a scalar is transformed to a vector consisting of one component.

How to Cite This Entry:
Operand. Encyclopedia of Mathematics. URL: http://encyclopediaofmath.org/index.php?title=Operand&oldid=11479
This article was adapted from an original article by A.P. Ershov (originator), which appeared in Encyclopedia of Mathematics - ISBN 1402006098. See original article