48: Moving average with DOSUBS
|
06-12-2015, 01:27 PM
Post: #1
|
|||
|
|||
48: Moving average with DOSUBS
I need to whip up a quick moving-average program. This doesn't work:
Code: AVG: And it's fairly obvious why: DOSUBS doesn't like the local name 'N' being present in the program it's being passed. What's the trick to modifying a program on the stack? I figure I should be able to recall the value of N, prepend it to \<< ->LIST AVG \>>, and have a program that DOSUBS will take. You can't simply concatenate programs with +, and while it works with lists, DOSUBS won't accept the function stored as a list. |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
48: Moving average with DOSUBS - Dave Britten - 06-12-2015 01:27 PM
RE: 48: Moving average with DOSUBS - Werner - 06-12-2015, 02:55 PM
RE: 48: Moving average with DOSUBS - Dave Britten - 06-12-2015, 03:03 PM
RE: 48: Moving average with DOSUBS - John R. Graham - 06-12-2015, 03:26 PM
RE: 48: Moving average with DOSUBS - Dave Britten - 06-12-2015, 04:03 PM
RE: 48: Moving average with DOSUBS - John R. Graham - 06-12-2015, 04:31 PM
RE: 48: Moving average with DOSUBS - Joe Horn - 06-12-2015, 05:50 PM
RE: 48: Moving average with DOSUBS - Dave Britten - 06-12-2015, 06:23 PM
RE: 48: Moving average with DOSUBS - Joe Horn - 06-12-2015, 09:56 PM
RE: 48: Moving average with DOSUBS - Dave Britten - 06-12-2015, 10:54 PM
RE: 48: Moving average with DOSUBS - John R. Graham - 06-12-2015, 06:09 PM
|
User(s) browsing this thread: 1 Guest(s)