Casio fx-3800P "Programming"
03-11-2020, 12:06 AM
Post: #16
 xerxes Member Posts: 158 Joined: Jun 2014
RE: Casio fx-3800P "Programming"
(03-06-2020 02:42 PM)Dave Britten Wrote:  You wouldn't think it would be possible to write a prime factor finder on a calculator with no Int or Frac functions, and no flow control besides "once more from the top",

Well done! I love it to check the limits of this type of keystroke programming.

I use normally these steps for INT and FRAC:

Code:
Rounding: 01  FIX0 02  RND 03  NORM Integer part: 01  - 02  . 03  5 04  = 05  FIX0 06  RND 07  NORM Fractional part: 01  Kin1 02  - 03  . 04  5 05  = 06  FIX0 07  RND 08  NORM 09  Kin-1 10  Kout1 Round(x)-x to loop, if the fractional part is not zero: 01  Kin1 02  FIX0 03  RND 04  NORM 05  Kin-1 06  Kout1 07  x^2 08  x>0 Round(x)-x to stop, if the fractional part is zero: 01  Kin1 02  FIX0 03  RND 04  NORM 05  Kin-1 06  Kout1 07  1/x

Calculator Benchmark
 « Next Oldest | Next Newest »

 Messages In This Thread Casio fx-3800P "Programming" - Dave Britten - 03-06-2020, 02:42 PM RE: Casio fx-3800P "Programming" - cdmackay - 03-07-2020, 01:19 AM RE: Casio fx-3800P "Programming" - Dave Britten - 03-07-2020, 02:34 AM RE: Casio fx-3800P "Programming" - Csaba Tizedes - 03-09-2020, 10:50 AM RE: Casio fx-3800P "Programming" - Dave Britten - 03-09-2020, 11:58 AM RE: Casio fx-3800P "Programming" - grsbanks - 03-07-2020, 12:18 PM RE: Casio fx-3800P "Programming" - Dave Britten - 03-07-2020, 12:22 PM RE: Casio fx-3800P "Programming" - grsbanks - 03-07-2020, 12:32 PM RE: Casio fx-3800P "Programming" - Eddie W. Shore - 03-08-2020, 02:34 PM RE: Casio fx-3800P "Programming" - Dave Britten - 03-08-2020, 02:52 PM RE: Casio fx-3800P "Programming" - Csaba Tizedes - 03-10-2020, 01:33 PM RE: Casio fx-3800P "Programming" - Csaba Tizedes - 03-10-2020, 11:02 PM RE: Casio fx-3800P "Programming" - cdmackay - 03-08-2020, 03:47 AM RE: Casio fx-3800P "Programming" - grsbanks - 03-08-2020, 11:12 AM RE: Casio fx-3800P "Programming" - ijabbott - 03-09-2020, 08:10 AM RE: Casio fx-3800P "Programming" - xerxes - 03-11-2020 12:06 AM