differences function
The differences between neighbouring elements of a list.
How to write it
differences(list)
- list
- The list. Takes a list.
Examples
differences([1, 4, 9])In the solver,
Open in the solverdifferences([1, 4, 9])gives[3, 5].
Related functions
- find_linear_recurrence
The recurrence a list of terms obeys, given only when it also holds on two more.
- sum_convergence
Test whether the sum of an expression over a variable converges.
- find_sequence_function
The formula of a sequence from its first terms, given only when it also predicts two more.
- sum
Sum of an expression over one or more ranges.
- next_terms
The terms that follow a list, given only when a rule explains it and predicts two more.
- series_coefficient
The coefficient of the term of a given order in the series of an expression.