HP 17bii+ solver problem, another solution



#2

A few weeks ago I posted this solver equation that would not work on the 17bii+ (although it apparently worked on the older 17bii):

sumofdigits=sigma(i:0:log(n):1:mod(n:10)+0xL(n:ip(n/10)))

A fellow forum member (as well as an HP rep) offered a solution that worked, but it involved defining and using another variable and using it in place of n. Today I determined that the offending part of the original equation was the *ip*(n/10), and I found that the following solution also works (and does not require a second variable):

sumofdigits=sigma(i:0:log(n):1:mod(ip(n):10)+0xL(n:n/10))

Interesting.


Possibly Related Threads…
Thread Author Replies Views Last Post
  [HP-PIRME] BUG Pretty Print, Solution: abs => |...|, ABS => ||...|| CompSystems 2 2,258 12-13-2013, 09:36 AM
Last Post: CompSystems
  hp-prime solver and variable name fabrice48 22 8,568 12-10-2013, 03:25 AM
Last Post: fabrice48
  Solver issue with HP 17BII - different from 19BII Jeff Kearns 13 4,823 11-28-2013, 02:36 AM
Last Post: Don Shepherd
  HP Prime Triangle solver BruceH 29 8,877 11-28-2013, 12:03 AM
Last Post: Dale Reed
  17BII & 17BII+ Discounted Payback Period Revisited Tom Neudorfl 8 3,001 11-25-2013, 10:28 AM
Last Post: Don Shepherd
  HP prime: linear solver app Alberto Candel 1 1,486 11-21-2013, 01:57 AM
Last Post: Michael Carey
  HP Prime: Linear Solver app bug BruceH 0 1,194 11-15-2013, 06:36 PM
Last Post: BruceH
  HP Prime Solver Variables Issue Anibal Morones Ruelas 8 3,187 10-19-2013, 09:45 AM
Last Post: Harold A Climer
  Is the Prime a superset of the HP 17bII+ ? vrrr 3 1,669 10-16-2013, 12:03 PM
Last Post: Michael de Estrada
  HP Prime triangle solver oddity BruceH 0 1,075 10-13-2013, 09:08 PM
Last Post: BruceH

Forum Jump: