Determining equations from points on a graph