The slope command takes as argument either a line, a line segment, or two points which determine a line.
slope returns the slope of the line.
Input:
or:
or:
Output:
Input:
Output:
Input:
or:
Output:
The slope command has slopeat and slopeatraw versions (see section 11.14.1).