Skip to content

Add PythagoreanTriple.java and Add assert statements#1417

Merged
StepfenShawn merged 4 commits into
TheAlgorithms:masterfrom
rbshealy:master
Aug 16, 2020
Merged

Add PythagoreanTriple.java and Add assert statements#1417
StepfenShawn merged 4 commits into
TheAlgorithms:masterfrom
rbshealy:master

Conversation

@rbshealy
Copy link
Copy Markdown
Contributor

@rbshealy rbshealy commented Aug 16, 2020

PythagoreanTriple.java is a class that determines whether its inputs, a,b,c are a Pythagorean triple.
returns true if a^2 + b^2 = c^2 and all are positive non-zero values, false otherwise

Adding assert statements to AbsoluteMax, AbsoluteMin, AbsoluteValue, MinValue, and MaxValue helps for testing

Comment thread Maths/AbsoluteMax.java Outdated
Comment thread Maths/AbsoluteMin.java Outdated
@StepfenShawn StepfenShawn merged commit ea43d70 into TheAlgorithms:master Aug 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants