+ 8

Pythagorean Triple Algorithm 💝💚

Pythagoras Theorem👈

27th Dec 2017, 1:45 PM
Junth Basnet
10 Answers
+ 18
SquareRoot(x*x+y*y+z*z) //this?? 3D pythagorean calculates 3D distance
27th Dec 2017, 2:20 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 18
go with answer of hatsy 👍 //if u want to check for pythagorean triplet of 3 numbers 1) see that u take 3 inputs 2)find largest number 3) sum of sq. of two smaller numbers == sq. of large number //if true , then those 3 numbers satisfies pythagorean triplet c^2 =a^2+b^2 // where c>a,b 👉 if u want to see that they can form sides of triangle then use prpry of triangle that sum of any 2 sides >3rd side //looks like we all r becoming kids once again here 😂
27th Dec 2017, 4:49 PM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 8
What is your question?
27th Dec 2017, 2:08 PM
Hatsy Rei
Hatsy Rei - avatar
+ 6
Well, any three numbers a, b, c with the relationship a² = b² + c² satisfies Pythagoras theorem. For Pythagorean triples, you can get an infinite set of (a,b,c) by determining b and c for all positive whole numbers, and making sure that the resultant value a is also a positive whole number.
27th Dec 2017, 3:24 PM
Hatsy Rei
Hatsy Rei - avatar
+ 5
How to find the 3 numbers so that they form Pythagorean triple💞💚 👈Actually I am in search of Algorithm💞💝 to do this🤔
27th Dec 2017, 2:27 PM
Junth Basnet
+ 5
Thanks @Gordie👏👏👍
28th Dec 2017, 1:56 AM
Junth Basnet
+ 4
may by saw this you can made your code too https://code.sololearn.com/c4EeuIs7jkQB/?ref=app
27th Dec 2017, 4:36 PM
GAWEN STEASY
GAWEN STEASY - avatar
+ 4
How to find the other 2 number🤔🤔 when one of the number is user input 😃
27th Dec 2017, 4:59 PM
Junth Basnet
+ 4
You may want to take a serious look at this: https://youtu.be/QJYmyhnaaek
27th Dec 2017, 8:38 PM
Dapper Mink
Dapper Mink - avatar
+ 4
Thanks @Jay 🤔🤔But this algorithm only gives Pythagorean triple 😉😉9 40 and 41😂😂
12th Jan 2018, 2:12 AM
Junth Basnet