Post Reply 
DOLIST/DOSUBS Equivalent?
07-07-2015, 06:12 PM
Post: #6
RE: DOLIST/DOSUBS Equivalent?
Someone wanted a Simpson/Trapezoid numerical integral in another thread which should easily be doable using lists and their operations provided. My first attempt to get a locally defined function operating on a list simply was g(l), with the list stored in l, the function in g. This worked with the message I should use ".^" instead of ^ because of some matrix-operations awaited by the CAS, I chose "ok" and it provided the correct result, but the message is annoying so I opted for EXECON("g(&1)",l) which worked without any error.
But then I tried another function and still got the same result which finally brought me to the result: EXECON does not work with locally declared functions, at least in a cas-program, it uses the global one instead, is that a feature or a bug?
Arno
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
DOLIST/DOSUBS Equivalent? - Helge Gabert - 07-06-2015, 05:28 PM
RE: DOLIST/DOSUBS Equivalent? - Arno K - 07-07-2015 06:12 PM
RE: DOLIST/DOSUBS Equivalent? - Arno K - 07-08-2015, 07:34 AM



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