Problem 2021. Is this triangle right-angled?
Solution Stats
Problem Comments
-
6 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!
Solution Comments
Show commentsProblem Recent Solvers5408
Suggested Problems
-
Maximum running product for a string of numbers
2040 Solvers
-
Arrange Vector in descending order
10323 Solvers
-
Determine Whether an array is empty
762 Solvers
-
Number of Even Elements in Fibonacci Sequence
1245 Solvers
-
Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock. Tick. Tock.
933 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!