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

Section 1.3.1 Incorrect formula of circle area #105

Open
jarmol opened this issue Oct 17, 2024 · 0 comments
Open

Section 1.3.1 Incorrect formula of circle area #105

jarmol opened this issue Oct 17, 2024 · 0 comments

Comments

@jarmol
Copy link

jarmol commented Oct 17, 2024

Haskell MOOC Part 1
Section 1.3.1 Features

Algebraic datatypes / Pattern matching

This is the formula of circle's circumference:
area (Circle radius) = 2 * pi * radius

The correct formula of the circle area is here:
area (Circle radius) = pi * radius * radius

That is equivalent to this:
area (Circle radius) = pi * radius^2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant