Post Reply 
Sudoku solver
03-27-2019, 01:32 PM
Post: #19
RE: Sudoku solver
(03-20-2019 08:58 PM)3298 Wrote:  
(03-20-2019 03:12 PM)ttw Wrote:  Unfortunately, [...] REPL does not work with reals.
You've made that claim earlier, but I don't believe it. In fact, I just tried it and had no such problem.
Code:
\<<
  [ [ 1. 2. 3. ] [ 4. 5. 6. ] [ 7. 8. 9.] ]
  { 2. 1. }
  [ [ 10. 11. ] [ 12. 13. ] ]
  REPL
\>>
results in
Code:
[ [ 1. 2. 3. ] [ 10. 11. 6. ] [ 12. 13. 9. ] ]
... as expected. The dots show that we're clearly working with reals. Firmware version 2.15 here, but that shouldn't matter.

I re-derived my code and now I know why I got the failures. One must do something like generate {# 1010b # 1011b #1100b # 1101b} through computation (direct entry doesn't cause failure) then:
B->R
EVAL
{2 2}
->ARRAY
REPL
Then one gets the failure. I fixed it by doing R->I after the B-R then 1.0 * just before REPL. R->I followed by I->R didn't work.

It seems that in some cases, logic operations followed by conversion to real doesn't get the type changed quickly. Just typing numbers into the calculator works, but programming fails. I'll post the whole code later. I only need it at one place (putting logical stuff into an array) so it's not too bad.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Sudoku solver - Pekis - 03-07-2019, 02:16 PM
RE: Sudoku solver - Simone Cerica - 03-07-2019, 03:01 PM
RE: Sudoku solver - Pekis - 03-07-2019, 03:55 PM
RE: Sudoku solver - David Hayden - 03-19-2019, 06:38 PM
RE: Sudoku solver - David Hayden - 03-24-2019, 03:11 PM
RE: Sudoku solver - John Keith - 03-07-2019, 04:58 PM
RE: Sudoku solver - Pekis - 03-07-2019, 06:52 PM
RE: Sudoku solver - Pekis - 03-07-2019, 07:28 PM
RE: Sudoku solver - Valentin Albillo - 03-07-2019, 10:47 PM
RE: Sudoku solver - Raymond Del Tondo - 03-08-2019, 10:02 PM
RE: Sudoku solver - ttw - 03-08-2019, 10:17 PM
RE: Sudoku solver - Raymond Del Tondo - 03-09-2019, 07:49 AM
RE: Sudoku solver - Claudio L. - 03-20-2019, 03:03 AM
RE: Sudoku solver - Bill Duncan - 03-09-2019, 02:11 AM
RE: Sudoku solver - ttw - 03-20-2019, 03:12 PM
RE: Sudoku solver - 3298 - 03-20-2019, 08:58 PM
RE: Sudoku solver - ttw - 03-27-2019 01:32 PM
RE: Sudoku solver - ttw - 03-21-2019, 12:29 AM
RE: Sudoku solver - 3298 - 03-21-2019, 09:17 AM



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