Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Math & Counting Operations on Lists >

Differences

Differences[list]
gives the successive differences of elements in list.
Differences[list, n]
gives the n^(th) differences of list.
Differences[list, {n1, n2, ...}]
gives the successive nk^(th) differences at level k in a nested list.
  • Differences[m, {1, 0}] or Differences[m, 1] finds the successive differences of rows in a 2D array or matrix m. Differences[m, {0, 1}] finds the differences of columns.
New in 6
© 2013 Wolfram Research, Inc. Japanese
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team