Jump to content



Photo
- - - - -

GCD for fx-3650P II

fx-3650P II

  • Please log in to reply
No replies to this topic

#1 Tritonio

Tritonio

    Casio Addict

  • Members
  • PipPipPip
  • 76 posts
  • Gender:Male

  • Calculators:
    fx-5800P, fx-991ES+, fx-991EX, HP Prime, fx-9750GIII, fx-3650P II

Posted 15 September 2022 - 01:45 PM

?➝A:
?➝B:
Lbl 1:
A÷B➝C:
Fix 0:
Rnd(C-0.5)➝D:
Rnd((C-D)×B)➝M:
Norm 2:
M=0⇒Goto 2:
B➝A:
M➝B:
Goto 1:
Lbl 2:
B

The fastest algorithm for greatest common divisor calculation. Pretty annoying that this calculator doesn't have Intg() and Mod(). But you can at least emulate them with code.







Also tagged with one or more of these keywords: fx-3650P II

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users