Post Reply 
Negate an equation:
02-09-2017, 05:06 PM
Post: #5
RE: Negate an equation:
Well, I tried many similar variants, but not precisely that ... I was hoping you would set me on the right path! For one thing, I was using EXPR, not expr, and it doesn't work with the upper case version. I like your method much better than the long winded version I've shown.

There is one other thing, it turns out that the last function in the list is the only one needing change of signs. So, in general, I can use something like:

L0(SIZE(L0));

To reach the objective in any size list of string elements. However that approach doesn't work in the CAS world, frustrating something like this:

STRING(CAS("-expr(L0( SIZE(L0) ))"));

This WILL work, however:

N:=SIZE(L0);
STRING(CAS("-expr(L0(N))"));

Would you have any thoughts on how to adapt your excellent method to any size list, in general?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Negate an equation: - DrD - 02-08-2017, 05:40 PM
RE: Negate an equation: - compsystems - 02-08-2017, 05:48 PM
RE: Negate an equation: - DrD - 02-09-2017, 12:00 PM
RE: Negate an equation: - Didier Lachieze - 02-09-2017, 12:16 PM
RE: Negate an equation: - DrD - 02-09-2017 05:06 PM
RE: Negate an equation: - Didier Lachieze - 02-09-2017, 07:55 PM
RE: Negate an equation: - DrD - 02-09-2017, 08:10 PM
RE: Negate an equation: - Han - 02-09-2017, 08:47 PM



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