Post Reply 
[VA] SRC#001 - Spiky Integral
07-16-2018, 03:27 AM
Post: #26
RE: [VA] SRC#001 - Spiky Integral
(07-15-2018 09:22 PM)John Keith Wrote:  Or equivalently, using only built-in commands:

<< 0 m NDUPN ->LIST >>
That's what I was originally looking for but it appears to be missing on the HP-48.
Thanks for all your suggestions.

(07-16-2018 12:31 AM)Gerson W. Barbosa Wrote:  We now can use it to compute the integrals much faster than I was able to before.

If you want to create a list of all values you better do that within the FOR-loop:
Code:
«
  « 0 SWAP NDUPN →LIST
  » → n ZEROS
  « { } { 0 1 } 2 n
    FOR k DUP SIZE → a s
      « π a HEAD * 2 k 3 - ^ / +
        k ZEROS EVAL a +
        a 1 k SUB 0 + REVLIST s 1 - ZEROS EVAL +
        ADD
        a k 1 + s SUB k 2 * ZEROS EVAL +
        ADD
      »
    NEXT
    π SWAP HEAD * 2 n 2 - ^ / +
  »
»

Kind regards
Thomas
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: [VA] SRC#001 - Spiky Integral - pier4r - 07-11-2018, 11:10 AM
RE: [VA] SRC#001 - Spiky Integral - Pjwum - 07-12-2018, 10:32 AM
RE: [VA] SRC#001 - Spiky Integral - DavidM - 07-15-2018, 07:53 PM
RE: [VA] SRC#001 - Spiky Integral - Thomas Klemm - 07-16-2018 03:27 AM
RE: [VA] SRC#001 - Spiky Integral - Werner - 07-18-2018, 06:17 AM



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