Matrix editor and ANS: estrange behavior
01-03-2015, 01:34 PM
Post: #1
 mainakae Junior Member Posts: 9 Joined: Jan 2015
Matrix editor and ANS: estrange behavior
Hello All,

Use case of the calculator:

-----------------
*Home view*
input a test vector: say [1,2,3]

*Matrix editor*
scroll to last element (ANS)
edit it: change all elements to say 0: [0,0,0]

*back to Home view*
Nothing changed!? vector stays [1,2,3], back to Matrix editor, ANS is [0,0,0]. There's no way to echo that detached ANS to the log, nor copy it.
-----------------

Short -maybe stupid- question: When in CAS, I still access the ANS from Home after entering Matrix Editor. I guess the answer is that the ANS from CAS is isolated from all the rest of the calculator, only available when in CAS.

Bests,
Pedro.
01-03-2015, 04:36 PM
Post: #2
 Snorre Member Posts: 101 Joined: Dec 2013
RE: Matrix editor and ANS: estrange behavior
Hello pedro,

the CAS's Ans can be accessed by "CAS.Ans".
01-03-2015, 10:16 PM
Post: #3
 mainakae Junior Member Posts: 9 Joined: Jan 2015
RE: Matrix editor and ANS: estrange behavior
Nice! I didn't know that.

Sadly, there's no CAS.Ans listed in lists editor (double checked my latest entry in CAS was a list).

By the way, is there a HOME.Ans? (Equivalent, I mean, I've check and that doesn't work.)
01-05-2015, 02:39 AM
Post: #4
 Joe Horn Senior Member Posts: 1,443 Joined: Dec 2013
RE: Matrix editor and ANS: estrange behavior
(01-03-2015 10:16 PM)mainakae Wrote:  By the way, is there a HOME.Ans? (Equivalent, I mean, I've check and that doesn't work.)

To access Home's Ans from CAS, you can use EVAL('Ans'). Be sure you spell EVAL in uppercase! If spelled in lowercase, as eval('Ans'), you get CAS's Ans, not Home's. Of course, this is not documented anywhere.

<0|ΙΈ|0>
-Joe-
01-06-2015, 09:02 PM
Post: #5
 Marcus von Cube Senior Member Posts: 754 Joined: Dec 2013
RE: Matrix editor and ANS: estrange behavior
(01-03-2015 04:36 PM)Snorre Wrote:  the CAS's Ans can be accessed by "CAS.Ans".

You can even use the notation CAS.Ans(level) to retrieve a specific CAS history level. In RPN it's

level
CAS.Ans(1)

and works the same.

Marcus von Cube
Wehrheim, Germany
http://www.mvcsys.de
http://wp34s.sf.net
http://mvcsys.de/doc/basic-compare.html
01-12-2015, 04:59 PM
Post: #6
 mainakae Junior Member Posts: 9 Joined: Jan 2015
RE: Matrix editor and ANS: estrange behavior
Thanks both!
 « Next Oldest | Next Newest »

User(s) browsing this thread: 1 Guest(s)