Kotlin-Polytech / KotlinAsFirst

Задачи для онлайн-курса "Котлин как первый язык программирования"
Creative Commons Attribution Share Alike 4.0 International
74 stars 115 forks source link

Add test for sin / cos that will fail with "just sin / cos" solution #66

Closed mglukhikh closed 5 years ago

mglukhikh commented 5 years ago

Taylor row, for example, should not give exactly the same result as mathematical functions.

gagarski commented 5 years ago

I think that explicitly forbidding it in the task description would be enough. Checking that a student result is "not as good" as Math.sin seems bad.

mglukhikh commented 5 years ago

I do not agree here. With given precision like 1.0 and angle of 1 rad we can expect to get exactly 1.0 as an answer and not the Math.sin value

mglukhikh commented 5 years ago

Also, remember that at Coursera we are unable to check manually do some student obey these rules or not.