You will write three functions that give the values of the expressions of the lesson from their rules, without evaluating the expressions themselves. The checker compares each function with the direct value on forty-one numbers.
The idea. is for , then above that, and below . In the same way has three regions with the border at and the multiple . And is .
Your tasks.
fold(x) with the three regions.triple(x) with the three regions. The middle one is .cos_fraction(x). Use atan, and a modulus.Have you tried it?
Do the tasks in the editor first, and run the checker after each one. Its hints help when a check fails. When you are ready, compare your code with this solution.
Log in to join the discussion.
Loading…