The + Command

add.png

Command Summary

Returns the sum of two numbers.

Command Syntax

value1 + value2

Menu Location

Press the [+] key to paste +.

Calculator Compatibility

This command works on all calculators.

Token Size

1 byte

The + operator adds two numbers, variables, or expressions together. Order of operations dictates that it's calculated after * and /, and at the same time as -.

The + operator can also be used on lists and matrices. For the most part, it behaves in the intuitive way, distributing the operation over each element. However, adding a number to a matrix (in either order) behaves differently: the number is only added along the main diagonal of the matrix. For "normal" addition that applies to every element of the matrix, see .+.

:1+1
           2
:5→x
:2+3*x
           17
:[1,2;3,4]+100
           [101  2]
           [3  104]

Related Commands

  • - (subtract)
  • * (multiply)
  • / (divide)

See Also

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-Noncommercial 2.5 License.