Skip to content

Chapter 2, Pythagorean theorem #468

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions