Post Reply 
(42S) GCD
08-17-2017, 02:23 PM
Post: #6
RE: (42S) GCD
(07-10-2016 01:39 AM)Eddie W. Shore Wrote:  GCD (Greatest Common Divisor) by Euclid

There is a 15C version as per Marcus du Sautoy explanation (in TV show 'Secrets Of Modern Living: Algorithms')

Code:

LBL E
  x=y   / there are the two numbers are equal?
  RTN   / yes, stop here and the GCD on the display
  x>y   / no, check there are the smaller number in x?
  x<>y  / no, chsnge x and y
  -     / let's substract it
  LSTx  / and get back the number of x
  GTO E / and again until numbers are equal

Deatiled discussion is here: Calculator Google Group - GCD (Euclid's Algorithm)

In that thread another version is available for SENCOR SEC103, which is a perfect clone of CASIO fx-3650P (but much cheaper, much faster and most precise Wink )

Csaba
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
(42S) GCD - Eddie W. Shore - 07-10-2016, 01:39 AM
RE: (42) GCD - Joe Horn - 07-12-2016, 03:48 AM
RE: (42) GCD - Dieter - 07-12-2016, 06:23 AM
RE: (42S) GCD - Logan - 02-13-2018, 09:57 PM
RE: (42) GCD - Paul Dale - 07-12-2016, 06:40 AM
RE: (42) GCD - Dieter - 07-13-2016, 09:59 AM
RE: (42S) GCD - Csaba Tizedes - 08-17-2017 02:23 PM



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