Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Example  





2 Notation  



2.1  Expressions as operands  





2.2  Order of operations  





2.3  Positioning of operands  





2.4  Infix and the order of operation  





2.5  Arity  







3 Computer science  





4 See also  





5 References  














Operand






العربية

Беларуская
Беларуская (тарашкевіца)
Català
Čeština
Eesti
Español
Esperanto
Euskara
فارسی
Français
Galego

Hrvatski
Bahasa Indonesia
Interlingua
עברית
Қазақша
Lietuvių
Magyar
Nederlands

Norsk bokmål
Norsk nynorsk
Олык марий
Polski
Português
Română
Русский
Simple English
Slovenčina
Ślůnski
Српски / srpski
Srpskohrvatski / српскохрватски
Suomi
Svenska
Tagalog
ி
Українська
Tiếng Vit


 

Edit links
 









Article
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Cite this page
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 






From Wikipedia, the free encyclopedia
 

(Redirected from Operands)

Inmathematics, an operand is the object of a mathematical operation, i.e., it is the object or quantity that is operated on.[1]

Example

[edit]

The following arithmetic expression shows an example of operators and operands:

In the above example, '+' is the symbol for the operation called addition.

The operand '3' is one of the inputs (quantities) followed by the addition operator, and the operand '6' is the other input necessary for the operation.

The result of the operation is 9. (The number '9' is also called the sum of the augend 3 and the addend 6.)

An operand, then, is also referred to as "one of the inputs (quantities) for an operation".

Notation

[edit]

Expressions as operands

[edit]

Operands may be nested, and may consist of expressions also made up of operators with operands.

In the above expression '(3 + 5)' is the first operand for the multiplication operator and '2' the second. The operand '(3 + 5)' is an expression in itself, which contains an addition operator, with the operands '3' and '5'.

Order of operations

[edit]

Rules of precedence affect which values form operands for which operators:[2]

In the above expression, the multiplication operator has the higher precedence than the addition operator, so the multiplication operator has operands of '5' and '2'. The addition operator has operands of '3' and '5 × 2'.

Positioning of operands

[edit]

Depending on the mathematical notation being used the position of an operator in relation to its operand(s) may vary. In everyday usage infix notation is the most common,[3] however other notations also exist, such as the prefix and postfix notations. These alternate notations are most common within computer science.

Below is a comparison of three different notations — all represent an addition of the numbers '1' and '2'

(infix notation)
(prefix notation)
(postfix notation)

Infix and the order of operation

[edit]

In a mathematical expression, the order of operation is carried out from left to right. Start with the leftmost value and seek the first operation to be carried out in accordance with the order specified above (i.e., start with parentheses and end with the addition/subtraction group). For example, in the expression

,

the first operation to be acted upon is any and all expressions found inside a parenthesis. So beginning at the left and moving to the right, find the first (and in this case, the only) parenthesis, that is, (2 + 22). Within the parenthesis itself is found the expression 22. The reader is required to find the value of 22 before going any further. The value of 22 is 4. Having found this value, the remaining expression looks like this:

The next step is to calculate the value of expression inside the parenthesis itself, that is, (2 + 4) = 6. Our expression now looks like this:

Having calculated the parenthetical part of the expression, we start over again beginning with the left most value and move right. The next order of operation (according to the rules) is exponents. Start at the left most value, that is, 4, and scan your eyes to the right and search for the first exponent you come across. The first (and only) expression we come across that is expressed with an exponent is 22. We find the value of 22, which is 4. What we have left is the expression

.

The next order of operation is multiplication. 4 × 4 is 16. Now our expression looks like this:

The next order of operation according to the rules is division. However, there is no division operator sign (÷) in the expression, 16 − 6. So we move on to the next order of operation, i.e., addition and subtraction, which have the same precedence and are done left to right.

.

So the correct value for our original expression, 4 × 22 − (2 + 22), is 10.

It is important to carry out the order of operation in accordance with rules set by convention. If the reader evaluates an expression but does not follow the correct order of operation, the reader will come forth with a different value. The different value will be the incorrect value because the order of operation was not followed. The reader will arrive at the correct value for the expression if and only if each operation is carried out in the proper order.

Arity

[edit]

The number of operands of an operator is called its arity.[4] Based on arity, operators are chiefly classified as nullary (no operands), unary (1 operand), binary (2 operands), ternary (3 operands). Higher arities are less frequently denominated through a specific terms, all the more when function composition or currying can be used to avoid them. Other terms include:

  • quaternary, tetranary (4)
  • quinary, quintenary, quinquennary (5)
  • hexanary, senary, sexenary (6)
  • septenary (7)
  • octonary (8)
  • nonary, novenary (9)
  • denary (10)
  • undenary (11)
  • duodenary (12)
  • tridecennary (13)
  • quindenary (15)
  • vigenary (20)
  • quadringenary (40)
  • quinquagenary (50)
  • sexagenary (60)
  • septuagenary (70)
  • octogenary (80)
  • nonagenary (90)
  • centenary (100)
  • sesquicentenary (150)
  • bicentenary (200)
  • tercentenary, tricentenary (300)
  • quadringentenary, quatercentenary (400)
  • quincentenary (500)
  • sexcentenary (600)
  • septcentenary (700)
  • octocentenary (800)
  • Computer science

    [edit]

    In computer programming languages, the definitions of operator and operand are almost the same as in mathematics.

    In computing, an operand is the part of a computer instruction which specifies what data is to be manipulated or operated on, while at the same time representing the data itself.[5] A computer instruction describes an operation such as add or multiply X, while the operand (or operands, as there can be more than one) specify on which X to operate as well as the value of X.

    Additionally, in assembly language, an operand is a value (an argument) on which the instruction, named by mnemonic, operates. The operand may be a processor register, a memory address, a literal constant, or a label. A simple example (in the x86 architecture) is

    MOV DS, AX
    

    where the value in register operand AX is to be moved (MOV) into register DS. Depending on the instruction, there may be zero, one, two, or more operands.

    See also

    [edit]

    References

    [edit]
    1. ^ American Heritage Dictionary
  • ^ "Physical Review Style and Notation Guide" (PDF). American Physical Society. Section IV–E–2–e. Retrieved 5 August 2012.
  • ^ "The Implementation and Power of Programming Languages". Retrieved 30 August 2014.
  • ^ Michiel Hazewinkel (2001). Encyclopaedia of Mathematics, Supplement III. Springer. p. 3. ISBN 978-1-4020-0198-7.: "Each connective has associated with it a natural number, called its rank, or arity."
  • ^ Nell Dale and John Lewis (2012). Computer Science Illuminated, 5th Edition. Jones and Bartlett. ISBN 978-1449672843.

  • Retrieved from "https://en.wikipedia.org/w/index.php?title=Operand&oldid=1177913602"

    Categories: 
    Algebra
    Mathematical notation
    Operators (programming)
    Machine code
    Hidden categories: 
    Articles with short description
    Short description matches Wikidata
     



    This page was last edited on 30 September 2023, at 12:20 (UTC).

    Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



    Privacy policy

    About Wikipedia

    Disclaimers

    Contact Wikipedia

    Code of Conduct

    Developers

    Statistics

    Cookie statement

    Mobile view



    Wikimedia Foundation
    Powered by MediaWiki