answersLogoWhite

0

There are many different methods: the simpler methods will generate lots of triplets but not all. Comprehensive generators tend to be very complex.

So here is a simple one: Euclid's formula

Take any two positive integers x and y and suppose x > y. Then

A = x2 - y2

B = 2xy

C = x2 + y2

form a Pythagorean triplet.

User Avatar

Wiki User

12y ago

Still curious? Ask our experts.

Chat with our AI personalities

DevinDevin
I've poured enough drinks to know that people don't always want advice—they just want to talk.
Chat with Devin
RossRoss
Every question is just a happy little opportunity.
Chat with Ross
SteveSteve
Knowledge is a journey, you know? We'll get there.
Chat with Steve

Add your answer:

Earn +20 pts
Q: How do you generate pythagorean triples?
Write your answer...
Submit
Still have questions?
magnify glass
imp