[VA] SRC#001 - Spiky Integral
|
07-15-2018, 06:26 PM
Post: #17
|
|||
|
|||
RE: [VA] SRC#001 - Spiky Integral
This RPL program calculates the coefficients:
Code: « Example: The value for 4 is: { 1 0 2 0 2 0 1 0 1 0 1 } To get the value for 5 we create the following lists: { 0 0 0 0 0 1 0 2 0 2 0 1 0 1 0 1 } { 0 2 0 2 0 1 0 0 0 0 0 0 0 0 0 0 } { 0 1 0 1 0 1 0 0 0 0 0 0 0 0 0 0 } And then we just ADD them up: { 0 3 0 3 0 3 0 2 0 2 0 1 0 1 0 1 } The 2nd and the 3rd list is just the 1st list reversed and then again mirrored at the left border. That's a consequence of \(a_k=a^k+a^{-k}\) being symmetric, that is \(a_k=a_{-k}\). We don't want negative indices. Cheers Thomas PS: Is there a better way to create a list of m zeros? |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)