NEG

Calculator Key: CHS

Member Of Menu: 
Complex
Real
Array
Argument Types: 
Real
Complex
Symbol
Expression
Array
Result Type(s): 
Real
Complex
Expression
Array
Invertible: 
Yes
Valid In Expression: 
Yes
Stack Diagram: 
Real1 -Real1
Complex1 -Complex1
Array1 Array2
Symbol1 Expression2
Expression1 Expression2

Given a real or complex input, this function returns the value of that input multiplied by -1. Given a matrix or vector, this function returns a matrix or vector of the same dimension with each value multiplied by -1.

Note that the CHS (change sign) button on the calculator executes the NEG operation on the top item on the stack. However, if you press CHS while in the midst of entering something, it does not execute CHS and instead tries to negate the current entry without pushing it to the stack.