Post Reply 
nextprime function now working as expected with Ans
07-26-2022, 06:10 PM (This post was last modified: 07-27-2022 01:10 PM by toml_12953.)
Post: #7
RE: nextprime function now working as expected with Ans
(07-26-2022 04:19 AM)Joe Horn Wrote:  The problem is caused by Prime having two different values of Ans, one for Home, and one for CAS. Since nextprime() is a CAS function, nextprime(Ans) always uses CAS's Ans, not Home's Ans. Does this mean that the HP Prime has multiple personality disorder? Yes, and it's scary because CAS's personality sneaks across into Home without warning, as you discovered.

This is why I always recommended that either

1) CAS and home be totally separate modes with no interaction. Those of us who have no need of CAS could ignore it.

or

2) CAS and home be totally integrated so that there was no division at all. You'd always be in a mode that could solve problems both numerically and exactly. Use a decimal point for approximation, or none for exact.

3.0 ÷ 4 = .75
3 ÷ 4 = ¾

TI's calculators have no problem doing this and neither do Casio's so I know it's not impossible.

Tom L
Cui bono?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: nextprime function now working as expected with Ans - toml_12953 - 07-26-2022 06:10 PM



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