how can i convert 2 integers into the pythagorean theorem

Expert Answers

An illustration of the letter 'A' in a speech bubbles

Pythagorean triplets are three numbers a, b and c that satisfy the relation a^2 + b^2 = c^2.

If 2 integers a and b are given, the third number that forms a Pythagorean triplet is `c = sqrt(a^2 + b^2)` or `c = sqrt(|a^2 - b^2|)` . Depending on the...

Unlock
This Answer Now

Start your 48-hour free trial to unlock this answer and thousands more. Enjoy eNotes ad-free and cancel anytime.

Start your 48-Hour Free Trial

Pythagorean triplets are three numbers a, b and c that satisfy the relation a^2 + b^2 = c^2.

If 2 integers a and b are given, the third number that forms a Pythagorean triplet is `c = sqrt(a^2 + b^2)` or `c = sqrt(|a^2 - b^2|)` . Depending on the values of a and b, c may or may not be an integer.

Approved by eNotes Editorial Team