Problem 2021. Is this triangle right-angled?
Solution Stats
Problem Comments
-
7 Comments
This is a good problem to refresh basic geometry
The checking should include a random Pythagorean triple (given random natural numbers a>b: a^2-b^2, 2ab, and a^2+b^2 form a Pythagorean triple). For the checking right now, a~=2 passes the tests.
Basic triangle math plus if statements. Great example
This reminds me the old good days ... basic geometry as Sreeram Mohan said :)
Brain clearance
great problem!
i think it is meaningful
Solution Comments
Show commentsProblem Recent Solvers6358
Suggested Problems
-
Project Euler: Problem 3, Largest prime factor
1779 Solvers
-
Rotate input square matrix 90 degrees CCW without rot90
675 Solvers
-
Natural numbers in string form
1830 Solvers
-
Find the sides of an isosceles triangle when given its area and height from its base to apex
2121 Solvers
-
1004 Solvers
More from this Author10
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!