What do you expect from Ans?
12-02-2019, 11:18 PM
Post: #1
 pinkman Senior Member Posts: 387 Joined: Mar 2018
What do you expect from Ans?
Hello,
What do you think Ans should return?

In CAS:
Code:
 3+4               7

In Home:
Code:
 3*4              12 isprime(Ans)      1

A bit disappointing, no?
12-03-2019, 12:56 AM
Post: #2
 Tim Wessman Senior Member Posts: 2,240 Joined: Dec 2013
RE: What do you expect from Ans?
What was the last thing you did on the CAS screen? I bet it was a prime number....

The problem is the CAS really can't be integrated like you want because there is severe incompatibility in many places with a "normal" calculator. Ans actually has 3 locations, cas screen, home, and RPN. They are all a bit different...

TW

Although I work for the HP calculator group, the views and opinions I post here are my own.
12-03-2019, 02:57 AM
Post: #3
 pinkman Senior Member Posts: 387 Joined: Mar 2018
RE: What do you expect from Ans?
Yes I clearly understand that inside a CAS function Ans is the one of the CAS, and that the reason of this is the difficulty of integration between two universes.
But one can expect the CAS command, executed in the Home context, receives all the data of this context, Ans included.
In fact the syntax is important: it is not executed in the Home context, it is executed from the Home context.
12-03-2019, 04:56 AM
Post: #4
 toml_12953 Senior Member Posts: 1,518 Joined: Dec 2013
RE: What do you expect from Ans?
(12-03-2019 02:57 AM)pinkman Wrote:  Yes I clearly understand that inside a CAS function Ans is the one of the CAS, and that the reason of this is the difficulty of integration between two universes.
But one can expect the CAS command, executed in the Home context, receives all the data of this context, Ans included.
In fact the syntax is important: it is not executed in the Home context, it is executed from the Home context.

Still, isprime is a CAS function so it uses Ans from the CAS environment. Where you executed it from is irrelevant to the calculator.

Tom L
I don't care for whom you voted. If you put ice in your beer, you're crazy.
12-03-2019, 05:20 AM
Post: #5
 Tim Wessman Senior Member Posts: 2,240 Joined: Dec 2013
RE: What do you expect from Ans?
We do not like it either.... there just is not much that can be done unfortunately.

TW

Although I work for the HP calculator group, the views and opinions I post here are my own.
12-03-2019, 07:47 AM
Post: #6
 Stevetuc Member Posts: 204 Joined: Jan 2014
RE: What do you expect from Ans?
(12-02-2019 11:18 PM)pinkman Wrote:  Hello,
What do you think Ans should return?

In CAS:
Code:
 3+4               7

In Home:
Code:
 3*4              12 isprime(Ans)      1

A bit disappointing, no?

And in Home:
Code:
 3*4              12 ISPRIME(Ans)      1
But this time a console opens

A strange frankenstein result, but does give both results
home Ans▶ console
Cas Ans▶ home
 « Next Oldest | Next Newest »

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