Post Reply 
Books about CAS
01-31-2020, 06:39 PM (This post was last modified: 01-31-2020 07:16 PM by Jonathan Busby.)
Post: #15
RE: Books about CAS
(01-31-2020 06:44 AM)Nad Wrote:  P.S. Talking about data types and memory representation, how are things like "x", pi, sqrt(2), "x^3 +y" etc. stored in memory in a CAS?

Usually, the CAS has some internal representation for algebraic expressions that's easy to convert to a string. The internal representation could be the AST ( Abstract Syntax Tree ) or something derived from it. In this format it's easy to manipulate the expressions for the purposes of eg. term re-writing and it's also possible to quickly evaluate the expression, assuming all free variables in the expression have been instantiated.

In the case of the 48, the CAS has a stack based, RPN, "meta-object" intermediate representation for symbolic expressions when the CAS needs to transform or manipulate the expression. Such expressions are stored as symbolic objects in another "intermediate representation" which are essentially the same as any other composite object such as lists or secondaries, and, with xEVAL, they're also executable. The symbolic object can contain a mix of variables, functions, and constants etc. basically any RPL word that makes sense in a symbolic. If the CAS needs the value of the symbolic, then EVALing it is quite quick since it can be directly executed like a secondary, assuming that all free variables are bound. In terms of term re-writing and other functions, IIRC, I think that the stack based, RPN, meta-object representation is used.
Regards,

Jonathan

NOTE #1 : The technical definition of a Sys-RPL meta-object is essentially an RPL composite object that has been serialized onto the stack via =INNERCOMP, where the first element on the stack is a system binary integer which indicates the number of objects that have been pushed to the stack.

Aeternitas modo est. Longa non est, paene nil.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Books about CAS - compsystems - 10-26-2019, 01:38 PM
RE: Books about CAS - Nad - 12-02-2019, 07:10 AM
RE: Books about CAS - Jonathan Busby - 01-10-2020, 09:55 PM
RE: Books about CAS - Nad - 01-12-2020, 06:26 AM
RE: Books about CAS - Jonathan Busby - 01-14-2020, 08:56 PM
RE: Books about CAS - Nad - 01-18-2020, 11:03 PM
RE: Books about CAS - Jonathan Busby - 01-19-2020, 04:38 PM
RE: Books about CAS - johanw - 05-02-2020, 09:45 PM
RE: Books about CAS - BruceH - 05-03-2020, 12:09 PM
RE: Books about CAS - Eddie W. Shore - 01-22-2020, 03:00 AM
RE: Books about CAS - Eddie W. Shore - 01-22-2020, 03:05 AM
RE: Books about CAS - Jonathan Busby - 01-23-2020, 04:29 PM
RE: Books about CAS - rprosperi - 01-23-2020, 09:51 PM
RE: Books about CAS - Nad - 01-24-2020, 12:13 AM
RE: Books about CAS - Jonathan Busby - 01-24-2020, 03:53 PM
RE: Books about CAS - Nad - 01-31-2020, 06:44 AM
RE: Books about CAS - Jonathan Busby - 01-31-2020 06:39 PM
RE: Books about CAS - Jonathan Busby - 01-31-2020, 07:52 PM
RE: Books about CAS - Nad - 02-01-2020, 05:20 AM
RE: Books about CAS - Jonathan Busby - 02-01-2020, 03:51 PM
RE: Books about CAS - Nad - 02-09-2020, 05:24 AM
RE: Books about CAS - F-73P - 05-01-2020, 02:42 AM
RE: Books about CAS - Nad - 05-06-2020, 05:08 AM
RE: Books about CAS - F-73P - 05-11-2020, 08:20 AM
RE: Books about CAS - compsystems - 05-06-2020, 05:39 PM
RE: Books about CAS - Jonathan Busby - 05-06-2020, 06:31 PM
RE: Books about CAS - Nad - 05-07-2020, 10:38 AM
RE: Books about CAS - jonmoore - 05-07-2020, 10:31 AM
RE: Books about CAS - Nad - 05-15-2020, 09:06 AM
RE: Books about CAS - John Keith - 05-15-2020, 06:13 PM
RE: Books about CAS - F-73P - 05-27-2020, 04:07 AM
RE: Books about CAS - Jonathan Busby - 05-27-2020, 07:00 PM
RE: Books about CAS - Nad - 05-17-2020, 07:12 AM
RE: Books about CAS - John Keith - 05-17-2020, 09:11 PM
RE: Books about CAS - Nad - 05-18-2020, 02:57 AM
RE: Books about CAS - F-73P - 06-03-2020, 05:14 AM



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