Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chapter 2, Pythagorean theorem #468

Open
chasm opened this issue May 31, 2024 · 0 comments
Open

Chapter 2, Pythagorean theorem #468

chasm opened this issue May 31, 2024 · 0 comments

Comments

@chasm
Copy link

chasm commented May 31, 2024

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant