The slope command finds the slope of a line.
| slope(line(1,2i)) |
or:
| slope(segment(1,2i)) |
or:
| slope(1,2i) |
|
| slope(line(x-2y=3)) |
|
| slope(tangent(plotfunc(sin(x)),pi/4)) |
or:
| slope(LineTan(sin(x),pi/4)) |
|
The slope command has slopeat and slopeatraw versions (see Section 26.13.1).