Post Reply 
(11C) Arithmetic with Fractions
09-17-2018, 01:46 AM
Post: #7
RE: (11C) Arithmetic with Fractions
(09-16-2018 10:06 PM)Dieter Wrote:  A better algorithm would first determine the LCM of the denominators.
Dieter

A HP-11C program to determine the LCM of the numbers in X and Y.
Code:
LBL A
STO 0
x<>y
STO 1
LBL 0
x=y
RTN
x>y
GTO 1
RCL 1
+
GTO 0
LBL 1
x<>y
RCL 0
+
x<>y
GTO 0

From Thomas Klemm, post #8
http://www.hpmuseum.org/forum/thread-11144.html
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
(11C) Arithmetic with Fractions - Gamo - 09-15-2018, 07:02 AM
RE: (11C) Arithmetic with Fractions - Steve Simpkin - 09-17-2018 01:46 AM
RE: (11C) Arithmetic with Fractions - Gamo - 09-17-2018, 03:47 AM
RE: (11C) Arithmetic with Fractions - Gamo - 09-17-2018, 09:40 AM
RE: (11C) Arithmetic with Fractions - Gamo - 09-22-2018, 06:33 AM



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