Post Reply 
CAS-> Variable() warning msg?
10-31-2014, 03:42 PM (This post was last modified: 10-31-2014 03:50 PM by Han.)
Post: #5
RE: CAS-> Variable() warning msg?
You should be careful with using functional notation on expressions as opposed to actual functions (and by functions, I mean as "defined" by the CAS).

a:=x^2;
x:={1,2,3,4};

a(1) through a(4) will behave as expected, but a(-1) will produce an error. The CAS is able to handle list processing, so that x^2 is {1,4,9,16}. The a(n) notation is now a reference to the n-th object in the list x^2. So a(-1) makes absolutely no sense in this context.

Graph 3D | QPI | SolveSys
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
CAS-> Variable() warning msg? - DrD - 10-31-2014, 09:36 AM
RE: CAS-> Variable() warning msg? - DrD - 10-31-2014, 01:03 PM
RE: CAS-> Variable() warning msg? - Han - 10-31-2014 03:42 PM
RE: CAS-> Variable() warning msg? - DrD - 10-31-2014, 04:39 PM
RE: CAS-> Variable() warning msg? - Han - 10-31-2014, 05:00 PM
RE: CAS-> Variable() warning msg? - DrD - 10-31-2014, 05:17 PM
RE: CAS-> Variable() warning msg? - Han - 10-31-2014, 11:04 PM
RE: CAS-> Variable() warning msg? - DrD - 11-01-2014, 12:48 PM
RE: CAS-> Variable() warning msg? - Han - 11-01-2014, 01:13 PM
RE: CAS-> Variable() warning msg? - DrD - 11-01-2014, 01:25 PM



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