math.delta

Overview


math.delta calculates the change in value between adjacent numerical values in a data stream.

 


Syntax

=math.delta([data stream])

 


Example

data_stream = (1, 3, 8, 12, 9, 6, 2)


=math.delta([data_stream])


creates a new data stream = (2, 5, 4, -3, -3, -4)