Nodes ▸ Functions ▸ Calculus
Diff
Returns the differences between adjacent elements of x along axis. The axis shrinks by one, and on a grid its scale becomes the pair midpoints.
Wraps diff.
Inputs
| Port | Accepts | Required | Description |
|---|---|---|---|
x | primitive(array) dataset(grid) | required | The array or grid to operate on |
Outputs
datasetprimitive(array)
Parameters
| Parameter | Kind | Default | Choices / range | Unit | Notes |
|---|---|---|---|---|---|
Axisaxis | choice | none | r | theta | phi | 0 | 1 | 2 | 3 | 4 | 5 |
Used by
No stock template or group uses this node.