Find gradient of a line from its equation (#381)