diffX
differentiate a spatial variable in the x-direction
Declaration
du = diffX(u,n)
Parameters
u
variable with dimensions \((x,y,z)\)n
(optional) order of differentiation \(\frac{d^n}{dx^n}\) (default 1)
Returns
du
differentiated variable in the spatial domain
Discussion
Performs spectral differentiation on variable u.