Differences

Differences[list]

gives the successive differences of elements in list.

Differences[list,n]

gives the n^(th) differences of list.

Differences[list,n,s]

gives the differences of elements step s apart.

Differences[list,{n1,n2,}]

gives the successive nk^(th) differences at level k in a nested list.

Details

Examples

open allclose all

Basic Examples  (2)

First differences:

In[1]:=
Click for copyable input
Out[1]=

Second differences:

In[1]:=
Click for copyable input
Out[1]=

Scope  (3)

Applications  (3)

Properties & Relations  (4)

Possible Issues  (1)

Neat Examples  (2)

See Also

Subtract  Accumulate  Ratios  ListConvolve  FoldList  DifferenceDelta  RecurrenceTable  EstimatedBackground

Introduced in 2007
(6.0)
| Updated in 2012
(9.0)