# differences function

The differences between neighbouring elements of a list.

## How to write it

### differences(list)

**list**

The list. Takes a list.

## Examples

- $\displaystyle \operatorname{differences}(\left[ 1, 4, 9 \right]) = \left[ 3, 5 \right]$

  `differences([1, 4, 9])`

  In the solver, `differences([1, 4, 9])` gives `[3, 5]`.

  [Open in the solver](https://hilberon.com/?q=differences%28%5B1%2C%204%2C%209%5D%29)

## Related functions

- [find_linear_recurrence](https://hilberon.com/library/find_linear_recurrence)

  The recurrence a list of terms obeys, given only when it also holds on two more.
- [sum_convergence](https://hilberon.com/library/sum_convergence)

  Test whether the sum of an expression over a variable converges.
- [find_sequence_function](https://hilberon.com/library/find_sequence_function)

  The formula of a sequence from its first terms, given only when it also predicts two more.
- [sum](https://hilberon.com/library/sum)

  Sum of an expression over one or more ranges.
- [next_terms](https://hilberon.com/library/next_terms)

  The terms that follow a list, given only when a rule explains it and predicts two more.
- [series_coefficient](https://hilberon.com/library/series_coefficient)

  The coefficient of the term of a given order in the series of an expression.

---
Source: https://hilberon.com/library/differences
