You are reusing x in each line calculating y, y1 and y2. I assume you intended to calculate y1 from x1 (not x) and y2 from x2 (also not x)
1 Like
You are reusing x in each line calculating y, y1 and y2. I assume you intended to calculate y1 from x1 (not x) and y2 from x2 (also not x)