-
Notifications
You must be signed in to change notification settings - Fork 12
Fixed right angled triangle side ordering for area #161
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
base: master
Are you sure you want to change the base?
Conversation
|
You'll need to update the This pull request would also require changing the tutorial task (in |
|
This PR actually fixes the tests to match description.html as previously the first vertex wasn't the right angle. |
|
Oh, whoops... On 28 April 2015 at 11:21, Tom Manderson [email protected] wrote:
|
|
Suggestion (possibly too mean for what already looks like a challenging problem): tweak the alternate test for 'area' so that the vertex list is given clockwise instead of anticlockwise. e.g. This would catch students who don't take the absolute value of the distances. (Edit: clarified which test to tweak) |
|
Actually, now that I've thought about it for another few seconds, the right-angled-triangle area question actually requires some non-trivial geometry if the right angle is not aligned with the x- and y- axes. [I had an example, but it was wrong, so I'm editing it out. You get the idea.] |
|
Yeah, euclidean distance between each point and the right angle. Not particularly simple. |
|
Hi jgat, |
|
I suggest tweaking the problem description (though you might have to deal with students who've already finished the task complaining that it gets made easier after they finish it). Suggested new version of the task:
|
|
I think this is the way to go - the question wasn't supposed to be about geometry after all |
|
Agreed. It wasn't meant to be difficult. If this looks like too much of a change for students who've already done On 28 April 2015 at 14:04, Peter Robinson [email protected] wrote:
|
As per emails between Jon/Peter this morning