Post Reply 
question concerning Ans
02-21-2016, 07:29 PM
Post: #1
question concerning Ans
Hello,
I have an issue with "Ans":
Example:
nextprime(1000000) ENTER
returns 1000003 (which might be correct, I don't know for sure)
but when entering now
nextprime(Ans) ENTER
I get 2 as a result.
Entering directly
nextprime(1000003) ENTER
I get 1000033, which seems plausible.
What is going on there? Are there some restrictions with Ans?
Thomas
Find all posts by this user
Quote this message in a reply
02-21-2016, 07:54 PM
Post: #2
RE: question concerning Ans
(02-21-2016 07:29 PM)ThomasA Wrote:  What is going on there? Are there some restrictions with Ans?
Thomas

Hi

Thesis is most likely to do with the two different Ans, one for CAS and one for Home. Since nextprime() is a CAS function it picks up the Ans from CAS, which is the result of some calculations you have done there earlier. More information about this behaviour is in this link

Hope this helps

Cheers, Terje
Find all posts by this user
Quote this message in a reply
02-22-2016, 04:01 PM
Post: #3
RE: question concerning Ans
Thanks, Terje!

I repeated my calculation within CAS - the problem was gone!
So what I learned by this: do all CAS-Calculations in CAS.

Thomas
Find all posts by this user
Quote this message in a reply
02-23-2016, 07:08 AM
Post: #4
RE: question concerning Ans
Hello,

yes, as a general rule, do all CAS calculations in CAS and all numerical calculations in home.

We have invested a considerable amount of work in trying to make Home/Cas interactions as seamless as possible to allow home/cas co-habitation, but in some cases, like this one, it does come back to bite us.

Cyrille

Although I work for the HP calculator group, the views and opinions I post here are my own. I do not speak for HP.
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: