Previous Up Next

26.13.8  Slope of a line

The slope command finds the slope of a line.

Examples

slope(line(1,2i))

or:

slope(segment(1,2i))

or:

slope(1,2i)
     
−2           
slope(line(x-2y=3))
     
1
2
          
slope(tangent(plotfunc(sin(x)),pi/4))

or:

slope(LineTan(sin(x),pi/4))
     
2
2
          

The slope command has slopeat and slopeatraw versions (see Section 26.13.1).


Previous Up Next