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
 toml_12953 Senior Member Posts: 2,138 Joined: Dec 2013
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?
 « Next Oldest | Next Newest »

 Messages In This Thread nextprime function now working as expected with Ans - lbundle - 07-26-2022, 02:10 AM RE: nextprime function now working as expected with Ans - Stevetuc - 07-26-2022, 04:12 AM RE: nextprime function now working as expected with Ans - Joe Horn - 07-26-2022, 04:22 AM RE: nextprime function now working as expected with Ans - Joe Horn - 07-26-2022, 04:19 AM RE: nextprime function now working as expected with Ans - Albert Chan - 07-26-2022, 01:06 PM RE: nextprime function now working as expected with Ans - lbundle - 07-26-2022, 04:48 PM RE: nextprime function now working as expected with Ans - toml_12953 - 07-26-2022 06:10 PM RE: nextprime function now working as expected with Ans - cdmackay - 07-27-2022, 11:54 AM RE: nextprime function now working as expected with Ans - John Keith - 07-27-2022, 12:44 PM

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