[SOLVED] LNAME - exctracting variables from stringed expression?
|
01-16-2017, 03:33 PM
Post: #7
|
|||
|
|||
RE: [SOLVED] LNAME - exctracting variables from stringed expression?
Prime can be confusing. If Han writes a book on the subject, I'm going to try to buy it!
Here's a few variations on the theme: [CAS] LNAME('X+y'); // ==> [X y] (vector) lname('X+y'); // ==> Shows up as LNAME and returns {y} (list) [Home] LNAME('X+y'); // ==> Syntax error (we know why). lname('X+y'); // ==> same deal. LNAME("'X+y'"); // ==> {} blank as my mind. lname("'X+y'"); // ==> same deal CAS("lname('X+y');"); ==> [139,y] (previously X=139 here) CAS("LNAME('X+y');"); ==>{y} b:="X+y"; LNAME(CAS("CAS(b)")); // ==> {y}, the reserved variable X is not present. b:=LOWER(b); LNAME(CAS("CAS(b)")); // ==> {x,y}, life is good. What I learn from this is that there is much to be learned. |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
[SOLVED] LNAME - exctracting variables from stringed expression? - chromos - 01-16-2017, 09:34 AM
RE: LNAME - exctracting variables from stringed expression? - DrD - 01-16-2017, 11:41 AM
RE: [SOLVED] LNAME - exctracting variables from stringed expression? - Han - 01-16-2017, 02:46 PM
RE: LNAME - exctracting variables from stringed expression? - Didier Lachieze - 01-16-2017, 12:23 PM
RE: LNAME - exctracting variables from stringed expression? - chromos - 01-16-2017, 12:38 PM
RE: [SOLVED] LNAME - exctracting variables from stringed expression? - DrD - 01-16-2017, 03:05 PM
RE: [SOLVED] LNAME - exctracting variables from stringed expression? - DrD - 01-16-2017 03:33 PM
|
User(s) browsing this thread: 1 Guest(s)