Post Reply 
(49G) Arabic to Pseudo-Roman Representation (OEIS A093788)
02-21-2017, 11:51 AM
Post: #3
RE: HP 49G: Arabic to Pseudo-Roman Representation (OEIS A093788)
Another improved(?) version:

Code:

::
  CK1&Dispatch
  # FF
  ::
    FPTR2 ^DupQIsZero?
    caseSIZEERR
    {
      {
        Z1_
      }
      {
        Z1_
        Z1_
      }
      {
        Z1_
        Z1_
        Z1_
      }
      {
        Z1_
        Z5_
      }
      {
        Z5_
      }
      {
        Z5_
        Z1_
      }
      {
        Z5_
        Z1_
        Z1_
      }
      {
        Z5_
        Z1_
        Z1_
        Z1_
      }
      {
        Z1_
        Z10_
      }
    }
    NULL$
    ROT
    FPTR2 ^Z>S
    DUPLEN$
    ZERO_DO
    DUP
    ISTOP-INDEX
    SUB$1#
    BINT48
    #-
    ::
      DUP#0=csedrp
      NULL$
      4PICKSWAP
      NTHCOMPDROP
      INNERCOMP
      NULL$SWAP
      ZERO_DO
      SWAP
      Z10_
      JINDEX@
      FPTR2 ^RP#
      FPTR2 ^RMULText
      FPTR2 ^Z>S
      SWAP&$
      LOOP
    ;
    ROT
    &$SWAP
    LOOP
    DROPSWAPDROP
    FPTR2 ^S>Z
  ;
;
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: HP 49G: Arabic to Pseudo-Roman Representation (OEIS A093788) - Gerald H - 02-21-2017 11:51 AM



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