[42S] looking for decimal to rational fraction
|
01-18-2019, 09:18 PM
(This post was last modified: 01-18-2019 09:36 PM by cdmackay.)
Post: #11
|
|||
|
|||
RE: [42S] looking for decimal to rational fraction
There were two problems: first, on my Free42 Android, somehow the REGS matrix had disappeared, causing the Size Error. A SIZE 25 sorted that out.
However, the program appears to be a little brittle regarding the stack contents when it starts. It starts by jumping to LBL 11, which saves the stack contents into R07–R10: Code: 01 LBL "FRACT" and it restores them when it's done. Unfortunately, those STO fail if there's something on the stack that can't be saved into a register, causing the Invalid Type. For example, a matrix, if you've just done a SIZE 25 That's fixed by putting some reals on the stack first. Normally not likely to be an issue, but not ideal. Cambridge, UK 41CL/DM41X 12/15C/16C DM15/16 17B/II/II+ 28S 42S/DM42 32SII 48GX 50g 35s WP34S PrimeG2 WP43S/pilot Casio, Rockwell 18R |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
[42S] looking for decimal to rational fraction - cdmackay - 01-17-2019, 11:38 PM
RE: [42S] looking for decimal to rational fraction - cdmackay - 01-17-2019, 11:44 PM
RE: [42S] looking for decimal to rational fraction - rprosperi - 01-18-2019, 12:01 AM
RE: [42S] looking for decimal to rational fraction - cdmackay - 01-18-2019, 12:17 AM
RE: [42S] looking for decimal to rational fraction - ijabbott - 01-18-2019, 12:26 AM
RE: [42S] looking for decimal to rational fraction - Thomas Okken - 01-18-2019, 12:47 AM
RE: [42S] looking for decimal to rational fraction - rprosperi - 01-18-2019, 01:24 AM
RE: [42S] looking for decimal to rational fraction - cdmackay - 01-18-2019, 08:20 PM
RE: [42S] looking for decimal to rational fraction - cdmackay - 01-18-2019, 07:55 PM
RE: [42S] looking for decimal to rational fraction - cdmackay - 01-18-2019, 08:36 PM
RE: [42S] looking for decimal to rational fraction - cdmackay - 01-18-2019 09:18 PM
|
User(s) browsing this thread: 1 Guest(s)