Skip to content

Commit 02bb602

Browse files
authored
Update instructions.append.md for Triangle (#1933)
1 parent 0b8e194 commit 02bb602

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exercises/practice/triangle/.docs/instructions.append.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Or maybe you will come up with an approach that uses none of those!
1313
## Non-integer lengths
1414

1515
The base exercise tests identification of triangles whose sides are all
16-
integers. However, some triangles cannot be represented by pure integers. A simple example is a right triangle (an isosceles triangle whose equal sides are separated by 90 degrees) whose equal sides both have length of 1. Its hypotenuse is the square root of 2, which is an irrational number: no simple multiplication can represent this number as an integer.
16+
integers. However, some triangles cannot be represented by pure integers. A simple example is a triangle with a 90 degree angle between two equal sides of length 1. Its third side has the length square root of 2, which is an irrational number. No integer can represent it.
1717

1818
It would be tedious to rewrite the analysis functions to handle both integer and floating-point cases, and particularly tedious to do so for all potential integer and floating point types: given signed and unsigned variants of bitwidths 8, 16, 32, 64, and 128, that would be 10 reimplementations of fundamentally the same code even before considering floats!
1919

0 commit comments

Comments
 (0)