[WP34S] "Memory Leak" in Integrator?



#5

I don't often use the built-in integrator, preferring my own implementation of the PPC IG routine that has less stringent convergence criteria and thus is faster for my purposes. But tonight on fooling with the built-in I noticed on more than one occasion that when I interrupt an integration calculation (if I think it is going on too long for my liking). I seemed to "lose" 60 to 100 words of RAM (as confirmed with "STATUS") that I can't seem to recover with CLREG or PopLR, for example. Only an erase--ON-back-arrow-back-arrow--gets my orphaned memory back. Moreover, if I attempt to start over again and reattempt the integral I interrupt, odd things can happen--no display of interim results, or interim results out in left field in a problem that I know was solved quickly before, or failure to converge in a reasonable length of time on a problem that I know is an "easy" integral for the precision I have set.

Recently there was something with SLV and POPUSR creating this orphaned memory phenomenon. Could the same thing be happening with INTEGRATE?

Les


#6

It is possible that integrate could lose memory -- seems unlikely however -- it is no different to solve in this respect.

The integrator allocates 88 words of RAM for local registers. These will appear used from you user routine. I doubt PopLR will recover them -- some lengths are gone to to hide the xrom state from the user.

When you restart, the stack should be cleared (if you start with an XEQ, not with R/S).


- Pauli


#7

Quote:
When you restart, the stack should be cleared (if you start with an XEQ, not with R/S).

Yup, that does it. If I run the program I am attempting to integrate with XEQ, passing it a valid argument, the claimed RAM goes back to the heap and the next time I run integrate it works properly. However, if I DON'T do this after interrupting an integration with R/S or EXIT, the integrator may not behave well--for example, if the display just shows "Running Program" instead of the integral sign = interim results, I know that something is not going well.

Les


#8

A RTN from the keyboard should work as well.


Possibly Related Threads...
Thread Author Replies Views Last Post
  Strange battery leak Cristian Arezzini 0 363 06-03-2013, 09:49 AM
Last Post: Cristian Arezzini
  [WP34S] WP34S firmware on the AT91SAM7L-STK dev kit? jerome ibanes 1 437 10-04-2012, 04:59 PM
Last Post: Paul Dale
  41 User Memory vs System Memory Gerry Schultz 6 838 07-01-2012, 12:02 AM
Last Post: Monte Dalrymple
  [wp34s] Incomplete Gamma on the wp34s Les Wright 18 1,683 12-06-2011, 11:07 AM
Last Post: Namir
  [wp34s] Romberg Integration on the wp34s Les Wright 2 543 12-04-2011, 10:49 PM
Last Post: Les Wright
  [WP34S] Numeric Integrator Has Max Iterations Set? Les Wright 6 751 11-23-2011, 05:35 AM
Last Post: Paul Dale
  Need advice: 48SX battery leak repair Scott Newell 3 451 10-12-2009, 11:27 PM
Last Post: Vieira, Luiz C. (Brazil)
  eBay fixes a leak Randy 39 2,749 03-13-2006, 06:03 PM
Last Post: Dave Hicks
  HP-3393A Integrator Michael Umbricht 1 303 10-17-2004, 08:28 AM
Last Post: Vassilis Prevelakis
  HP 3390A Integrator John Limpert 4 480 09-09-2004, 05:40 PM
Last Post: Yos Feit

Forum Jump: