Skip to content

Chapter 2, Pythagorean theorem #468

@chasm

Description

@chasm

The Pythagorean theorem is a^2 + b^2 = c^2. w and h are bad choices and confused me as they appear to represent height and width, not the two sides of a right triangle.

So I suggest that you change the exercise to expect this, to be clearer:

diagonal a b = sqrt (a * a + b * b)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions