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.

Diffx

Inputs

PortAcceptsRequiredDescription
x primitive(array) dataset(grid) required The array or grid to operate on

Outputs

datasetprimitive(array)

Parameters

ParameterKindDefaultChoices / rangeUnitNotes
Axis
axis
choice none r | theta | phi | 0 | 1 | 2 | 3 | 4 | 5

Used by

No stock template or group uses this node.