Skip to content

Correct definition for the Triangle inequality#298

Merged
petertseng merged 1 commit intoexercism:masterfrom
matthewfischer:master
Jul 20, 2016
Merged

Correct definition for the Triangle inequality#298
petertseng merged 1 commit intoexercism:masterfrom
matthewfischer:master

Conversation

@matthewfischer
Copy link
Copy Markdown
Contributor

"or equal to" was missing.

In mathematics, the triangle inequality states that for any triangle,
the sum of the lengths of any two sides must be greater than or equal to
the length of the remaining side.

Source: https://en.wikipedia.org/wiki/Triangle_inequality

"or equal to" was missing.

In mathematics, the triangle inequality states that for any triangle,
the sum of the lengths of any two sides must be greater than or equal to
the length of the remaining side.

Source: https://en.wikipedia.org/wiki/Triangle_inequality
@NobbZ
Copy link
Copy Markdown
Member

NobbZ commented Jul 19, 2016

We need to be careful with this. There has been some discussion around this
some time ago. One of the problems is that some tracks do it as described
in the read me and others as it is defined in mathematics. Can't search or
link right now, because I'm on mobile right now.

Am 19.07.2016 20:45 schrieb "Matt Fischer" notifications@github.com:

"or equal to" was missing.

In mathematics, the triangle inequality states that for any triangle,
the sum of the lengths of any two sides must be greater than or equal to
the length of the remaining side.

Source: https://en.wikipedia.org/wiki/Triangle_inequality

You can view, comment on, or merge this pull request online at:

#298
Commit Summary

  • Correct definition for the Triangle inequality

File Changes

Patch Links:


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#298, or mute the thread
https://github.com/notifications/unsubscribe-auth/AADmR20h9JAPPPySDQ2QfNYkJKu6O2WYks5qXRtkgaJpZM4JQCs1
.

@matthewfischer
Copy link
Copy Markdown
Contributor Author

Maybe we could just explain that in the README and post a link to the mathematical definition?

@petertseng
Copy link
Copy Markdown
Member

The previous discussion was at #202 and mainly centered around whether tracks should have tests for cases when a + b = c. Regardless of what the answer to that question is, the README should at least give the correct definition.

So I say 👍 to this.

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

Successfully merging this pull request may close these issues.

3 participants