(41C) Pythagorean Triples
|
06-25-2022, 03:40 PM
(This post was last modified: 06-25-2022 03:52 PM by Thomas Klemm.)
Post: #2
|
|||
|
|||
RE: (41C) Pythagorean Triples
On page 26 we find:
Quote:Our calculators used Reverse Polish Notation, which is a great convenience and posed no difficulty to the children. No one in this forum is surprised by that. I picked the problem to print primitive Pythagorean triples. Here's a program for the HP-42S: Code: 00 { 99-Byte Prgm } # Example 12 XEQ "PPT" 3 4 5 5 12 13 15 8 17 7 24 25 21 20 29 9 40 41 35 12 37 11 60 61 45 28 53 33 56 65 13 84 85 63 16 65 55 48 73 39 80 89 15 112 113 77 36 85 65 72 97 17 144 145 99 20 101 91 60 109 51 140 149 19 180 181 117 44 125 105 88 137 85 132 157 57 176 185 21 220 221 143 24 145 119 120 169 95 168 193 23 264 265 Make sure to SF 21 and hit R/S to get to the next triple. The program is based on the following Python program: Code: def primitive(m): References |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
(41C) Pythagorean Triples - SlideRule - 10-15-2019, 12:57 PM
RE: (41C) Pythagorean Triples - Thomas Klemm - 06-25-2022 03:40 PM
RE: (41C) Pythagorean Triples - C.Ret - 06-26-2022, 09:29 AM
RE: (41C) Pythagorean Triples - Thomas Klemm - 06-27-2022, 05:51 AM
RE: (41C) Pythagorean Triples - Ángel Martin - 06-29-2022, 01:02 PM
RE: (41C) Pythagorean Triples - John Keith - 07-01-2022, 11:55 AM
RE: (41C) Pythagorean Triples - C.Ret - 07-03-2022, 08:18 AM
RE: (41C) Pythagorean Triples - John Keith - 07-03-2022, 01:55 PM
RE: (41C) Pythagorean Triples - Thomas Klemm - 07-03-2022, 10:46 AM
RE: (41C) Pythagorean Triples - C.Ret - 07-03-2022, 01:41 PM
|
User(s) browsing this thread: 1 Guest(s)