The graph of is a straight line. You will find where it meets the axes, work out for any , and list five points. Then the program draws the line through them.
The idea. Put for the x-intercept, , and for the y-intercept, . For any , .
Your tasks.
intercepts, return the pair (c / a, c / b).y_on_line, return the that goes with x.points with the pairs (x, y) for x from to , for the line .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…