Post Reply 
Existing CAS commands --> Prime discussion
11-08-2019, 03:00 PM
Post: #73
RE: Existing CAS commands --> Prime discussion
(11-08-2019 10:59 AM)toml_12953 Wrote:  
(11-08-2019 08:12 AM)ijabbott Wrote:  In Xcas, increment(a,1) gets turned into a+=1, incrementing a in place.

Really? On Prime when I try it, it does this:

I type a:=5
Prime shows 5
I type increment(a,1)
Prime shows increment(5,1)
I type a
Prime shows 5

Prime has not incremented a.

In Home Settings, page 2 (not page 1), turn ON "Textbook Display". Now in CAS type:

a:=5
a+=1

You'll see that your a+=1 gets displayed as

increment(a,1)

... but if you turn Textbook Display mode OFF, it's displayed as

a:=a+1

However, typing increment() on the command line does not work; it's not recognized, like typing foobar() or any other nonexistent command.

<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: Existing CAS commands --> Prime discussion - Joe Horn - 11-08-2019 03:00 PM



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