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 |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
DOLIST/DOSUBS Equivalent? - Helge Gabert - 07-06-2015, 05:28 PM
RE: DOLIST/DOSUBS Equivalent? - Tim Wessman - 07-06-2015, 06:29 PM
RE: DOLIST/DOSUBS Equivalent? - Helge Gabert - 07-06-2015, 11:47 PM
RE: DOLIST/DOSUBS Equivalent? - Helge Gabert - 07-07-2015, 12:38 AM
RE: DOLIST/DOSUBS Equivalent? - Tim Wessman - 07-07-2015, 01:55 PM
RE: DOLIST/DOSUBS Equivalent? - Arno K - 07-07-2015 06:12 PM
RE: DOLIST/DOSUBS Equivalent? - cyrille de brébisson - 07-08-2015, 04:58 AM
RE: DOLIST/DOSUBS Equivalent? - Arno K - 07-08-2015, 07:34 AM
|
User(s) browsing this thread: 2 Guest(s)