DifferenceDelta
f(n+1) - f(n), simplified -- the forward difference of a sequence.
✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram Language
DifferenceDelta!DifferenceDelta(f, n)f(n+1) - f(n), simplifiedSymPy
difference_delta(f, n)Typed signatures
| Type | Package | Applies |
|---|---|---|
(any, symbol) -> any | combinatorics | always |
Details
- Substitutes n -> n+1 into f and simplifies the difference; stays symbolic when it does not collapse further.
Examples
Basic #
Scope #
Naming the index should keep it a bound variable, not the imaginary unit; compute-engine lifts a variable i to the imaginary unit when it boxes, so the difference comes back over and
live ↗
InOut
live ↗
InOut
live ↗
InOut
live ↗
InOut
live ↗
InOut
live ↗
InOut
live ↗
InOut
live ↗
InOut
live ↗
InOut
live ↗
InOut
live ↗
InOut
live ↗
InOut
live ↗
InOut
live ↗
InOut
live ↗
InOut
About
| Examples | 28 |
|---|---|
| Checked against | Wolfram Language 26 agree1 differSymPy 23 agree |
| Crosswalk | Wolfram LanguageSymPy |
Implementation
mapped
sympypackages/oracle/src/mappings.ts See also: DiscreteRatio