Talk:Law of cosines - triples: Difference between revisions
Content added Content deleted
(→How to verify the number of triangles for the extra credit?: Cross check?) |
(Responded to how to verify the number of triangles for the extra credit.) |
||
Line 18: | Line 18: | ||
: We would have a week to examine each others results and refine the task. [[User:Paddy3118|Paddy3118]] ([[User talk:Paddy3118|talk]]) 12:25, 24 September 2018 (UTC) |
: We would have a week to examine each others results and refine the task. [[User:Paddy3118|Paddy3118]] ([[User talk:Paddy3118|talk]]) 12:25, 24 September 2018 (UTC) |
||
::Paddy, I suspect there may be a problem with the expression: int(c2**0.5) which occurs 3 times in your Python entry. If the power function produces a value which is slightly less than the 'correct' integer value, then the 'int' function will round it down and the wrong tuple will be added to the set. |
|||
::I'd see if you get a different answer for the extra credit if you use instead: int(round(c2**0.5)). --[[User:PureFox|PureFox]] ([[User talk:PureFox|talk]]) 14:46, 24 September 2018 (UTC) |