# table.derivative

Syntax

l = table.derivative(t)

Returns a list of 2D vectors representing the derivative of the curve represented by the table t.

The list will be of length one less than the number of entries in the table. The derivatives are calculated simply by determining the delta y over delta x of each adjacent entry in the table, and returning the midpoint as the X value and the rate of change as the Y.

Returns: l - list of 2D vectors t - integer name, string name, or table pointer