Post Reply 
What do you expect from Ans?
12-02-2019, 11:18 PM
Post: #1
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?
Find all posts by this user
Quote this message in a reply
12-03-2019, 12:56 AM
Post: #2
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.
Find all posts by this user
Quote this message in a reply
12-03-2019, 02:57 AM
Post: #3
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.
Find all posts by this user
Quote this message in a reply
12-03-2019, 04:56 AM
Post: #4
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 think therefore I am-Descartes
I think therefore you are-Gorgias
You're not here to think-Army Sergeant
Find all posts by this user
Quote this message in a reply
12-03-2019, 05:20 AM
Post: #5
RE: What do you expect from Ans?
We do not like it either.... there just is not much that can be done unfortunately. Sad

TW

Although I work for the HP calculator group, the views and opinions I post here are my own.
Find all posts by this user
Quote this message in a reply
12-03-2019, 07:47 AM
Post: #6
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
Find all posts by this user
Quote this message in a reply
Post Reply 




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