Heronian triangles: Difference between revisions

Content deleted Content added
Walterpachl (talk | contribs)
m capitalized Heroniam in the task section header.
Line 14: Line 14:


Note that any triangle whose sides are all an integer multiple of 3,4,5; such as 6,8,10, will
Note that any triangle whose sides are all an integer multiple of 3,4,5; such as 6,8,10, will
also be a heronian triangle.
also be a Heronian triangle.


Define a '''Primitive Heronian triangle''' as a heronian triangle where the greatest common divisor
Define a '''Primitive Heronian triangle''' as a Heronian triangle where the greatest common divisor
of all three sides is 1. This will exclude, for example triangle 6,8,10
of all three sides is 1. This will exclude, for example triangle 6,8,10


'''The task''' is to:
'''The task''' is to:
# Create a named function/method/procedure/... that implements Hero's formula.
# Create a named function/method/procedure/... that implements Hero's formula.
# Use the function to generate all the ''primitive'' heronian triangles with sides <= 200.
# Use the function to generate all the ''primitive'' Heronian triangles with sides <= 200.
# Show the count of how many triangles are found.
# Show the count of how many triangles are found.
# Order the triangles by first increasing area, then by increasing perimeter, then by increasing maximum side lengths
# Order the triangles by first increasing area, then by increasing perimeter, then by increasing maximum side lengths