Bug in article 893? (HP 35s Triangle solver)


In article 893, there's a rather nice triangle solver, though I think there's an error in the calculation of the 2nd SSA solution (menu option 6). Observe this bit of code:

T096	CF 10
T098 STO V
T100 STO W
T101 FS? 1
T102 GTO T084
T103 EQN ACOS(1)-W
T104 STO W
T105 GTO T084

I see two problems with this. First, ACOS(1) is always zero, so W (angle 3) is just negated, whereas it should be replaced with its supplement(ACOS(-1)-W).

The second problem is that it's actually angle 2 (V) that needs to be replaced with its supplement, not angle 3 (W).

I've made the following changes. Anybody care to confirm that this makes sense? It looks like I'm getting the correct results now.

T096	CF 10
T098 STO V
T099 FS? 1
T100 GTO T103
T101 EQN ACOS(-1)-V
T102 STO V

T104 STO W
T105 GTO T084


Possibly Related Threads...
Thread Author Replies Views Last Post
  hp-prime solver and variable name fabrice48 22 6,355 12-10-2013, 03:25 AM
Last Post: fabrice48
  Proceedings of the IEEE Article Katie Wasserman 24 5,467 11-29-2013, 07:56 AM
Last Post: Walter B
  Solver issue with HP 17BII - different from 19BII Jeff Kearns 13 3,561 11-28-2013, 02:36 AM
Last Post: Don Shepherd
  HP Prime Triangle solver BruceH 29 6,432 11-28-2013, 12:03 AM
Last Post: Dale Reed
  HP prime: linear solver app Alberto Candel 1 1,058 11-21-2013, 01:57 AM
Last Post: Michael Carey
  HP Prime graphing bug BruceH 1 1,066 11-19-2013, 08:14 AM
Last Post: Joe Horn
  HP Prime: Linear Solver app bug BruceH 0 804 11-15-2013, 06:36 PM
Last Post: BruceH
  HP Prime - another cosmetic bug BruceH 3 1,389 11-12-2013, 02:18 PM
Last Post: Ken Shaw
  HP Prime Solver Variables Issue Anibal Morones Ruelas 8 2,283 10-19-2013, 09:45 AM
Last Post: Harold A Climer
  HP Prime Bug bluesun08 19 4,177 10-14-2013, 10:48 PM
Last Post: Han

Forum Jump: