Post Reply 
nextprime function now working as expected with Ans
07-26-2022, 04:22 AM
Post: #4
RE: nextprime function now working as expected with Ans
(07-26-2022 04:12 AM)Stevetuc Wrote:  nextprime(Ans) always returns 1.15951471769ᴇ15.
regardless of what Ans is preset to!
nextprime(Eval(Ans)) gives the expected result 5 when Ans is set to 3

The former (above) is using the Ans from CAS. Go into CAS, set its Ans to something, then go back to Home and set its Ans to something else. nextprime(Ans) will use the Ans from CAS, not the Ans from Home, even though you're in Home view.

The latter (above) is forcing Prime to use Home's Ans.

Crazy Prime. Sad

<0|ɸ|0>
-Joe-
Visit this user's website 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 - Joe Horn - 07-26-2022 04:22 AM



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