+ 8
Pythagorean Triple Algorithm 💝💚
Pythagoras Theorem👈
10 odpowiedzi
+ 18
SquareRoot(x*x+y*y+z*z)
//this?? 3D pythagorean calculates 3D distance
+ 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 😂
+ 8
What is your question?
+ 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.
+ 5
How to find the 3 numbers so that they form Pythagorean triple💞💚 👈Actually I am in search of Algorithm💞💝 to do this🤔
+ 5
Thanks @Gordie👏👏👍
+ 4
may by saw this you can made your code too
https://code.sololearn.com/c4EeuIs7jkQB/?ref=app
+ 4
How to find the other 2 number🤔🤔 when one of the number is user input 😃
+ 4
You may want to take a serious look at this:
https://youtu.be/QJYmyhnaaek
+ 4
Thanks @Jay
🤔🤔But this algorithm only gives Pythagorean triple
😉😉9 40 and 41😂😂