[WP34s] RUN instead of STOP ?



#11

As the header says: since a few versions the WP34s shows RUN instead of STOP (for the R/S key) when entering or listing a program.

Is this intended? Looks quite strange ...

BTW, I've found a small bug in my TVM solver - I'll release a new version today after a few more tests.

Franz

Edited: 10 May 2012, 5:02 a.m.


#12

Quote:
As the header says: since a few versions the WP34s shows RUN instead of STOP (for the R/S key) when entering or listing a program.

Not sure where this is coming from -- it is wrong nonetheless. I can duplicate in 2939 firmware and 2975 in the emulator.


Quote:
BTW, I've found a small bug in my TVM solver - I'll release a new version today after a few more tests.

We await the new version.....


- Pauli


#13

Quote:
We await the new version.....

Well, it was not really a serious problem, i.e. it didn't return any wrong results. It was just so that the solver SLV didn't get the correct (intended) 2 initial guesses but some other meaningless values, so it may fail in some cases when solving for I.

But it seems that bug-fixing isn't always a goos idea. :-(

Now that I use the 2 correct initial guesses, _sometimes_ the solver fails because of a different problem: it produces values <= -1 for the internal interest rate during the SLV process, and so the financial equation stops with an error (because ln(1+x) is of course not defined for x<=-1.

Now my question: should I implement a test for i<=-1 and return NaN in this subroutine for SLV?

Can SLV handle such NaN 'results' and what would SLV do in this situation?

Franz


#14

Quote:
Can SLV handle such NaN 'results' and what would SLV do in this situation?

It fails immediately on a NaN if the user has flag D set. Without flag D set, the command interpreter fails when a NaN result would occur (with a Domain Error).


- Pauli


#15

Ok, then NaN is definitely no option in the TVM equation.

What I still don't understand is how SLV could ever reach such values i<=-1 if I use I1=0% and I2=1% as initial guesses!?

I guess I'll have to make more tests, and maybe I'll have to even completely rewrite this (solving for I) part of TVM ... :-(

Franz


#16

If the initial guesses don't bracket the solution, solve looks elsewhere.

0% and 100% might be better guesses.

- Pauli


#17

Quote:
If the initial guesses don't bracket the solution, solve looks elsewhere.

I always thought that SLV would build a quadratic function from the initial guesses and use the zero(s) of this parabola as new root-estimation!?

Well, then I'll try 100% as 2nd value ...

Franz


#18

Quadratic interpolation is one of the methods uses. That doesn't help if a NaN result appears.


What's: 3 x2 + NaN x - 2???


- Pauli


#19

Quote:
What's: 3 x2 + NaN x - 2???

NaN

Regards from V.

#20

Quote:
As the header says: since a few versions the WP34s shows RUN instead of STOP (for the R/S key) when entering or listing a program.
Is this intended? Looks quite strange ...

It used to show STOP in any case, even when RUN was meant. I changed it when I added the printer trace function to make the printout more meaningful. I just forgot about program mode. :-(

Fixed!


Possibly Related Threads...
Thread Author Replies Views Last Post
  HP Prime: run a program in another program Davi Ribeiro de Oliveira 6 606 11-11-2013, 08:28 PM
Last Post: Davi Ribeiro de Oliveira
  HP PRIME: Hide return value from program and swap Edit with Run vrrr 2 428 11-09-2013, 04:04 PM
Last Post: vrrr
  [WP34S] WP34S firmware on the AT91SAM7L-STK dev kit? jerome ibanes 1 315 10-04-2012, 04:59 PM
Last Post: Paul Dale
  Make PIL-Box ILPer program run on OS X Juergen Keller 6 600 09-07-2012, 04:38 PM
Last Post: Hans Holzach
  HP48SX seems fully functional won't run SELF TESTS? Bruce Larrabee 5 507 07-16-2012, 11:04 PM
Last Post: Luiz C. Vieira (Brazil)
  HP-35A Production Run Questions Matt Agajanian 0 183 07-02-2012, 09:02 PM
Last Post: Matt Agajanian
  OFF TOPIC: Computer to run Windows 95? Dia C. Tran 13 864 06-04-2012, 03:21 AM
Last Post: x34
  HP-71B: Trying to run 2CDCC on a 1BBBB machine Hans Brueggemann 12 795 04-27-2012, 06:51 PM
Last Post: Olivier De Smet
  HP-67 won't run on batteries David Ramsey 5 472 04-18-2012, 12:15 AM
Last Post: David Ramsey
  New run of 15C LE Chuck PNW 16 1,012 03-31-2012, 12:30 AM
Last Post: Katie Wasserman

Forum Jump: