Post Reply 
Pythagorean Triples
02-09-2017, 02:49 PM
Post: #3
RE: Pythagorean Triples
Pythagorean Triple Generator in RPL:

« → X Y « X SQ Y SQ + LASTARG - ABS X Y * 2 * » »

Inputs: two unequal integers > 0. If a "primitive" Pythagorean triple is desired, the inputs must also be coprime and one of them must be even.

<0|ɸ|0>
-Joe-
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Pythagorean Triples - Eddie W. Shore - 02-09-2017, 05:42 AM
RE: Pythagorean Triples - Dieter - 02-09-2017, 08:49 AM
RE: Pythagorean Triples - Joe Horn - 02-09-2017 02:49 PM
RE: Pythagorean Triples - Dieter - 02-09-2017, 08:57 PM



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