Ans returns the result of the last operation. This ignores any functions without a return value. Ans may have any type, including Real, List, Matrix or String.
- On the keypad
- 2ND + (-)
:1+1 :Disp Ans
This will display 2. Ans is updated since
1+1 has the return value
:1+1 :Disp 3+1 :Disp Ans
This will display 4 then 2. Ans is updated with the call
1+1, but it is not updated by the call
Disp 3+1, since Disp does not return a value.