Closed degawa closed 2 years ago
unordered results are obtained when input unordered stencil
stencil = [-1, 0, 1, -2, 2] print(fd.equation(stencil, deriv=1, same_subscripts_as_stencil=True, evaluate=False)) # (-8*f_{-1} + 0*f_{0} + 8*f_{1} + f_{-2} - f_{2})/(12*h)
unordered results are obtained when input unordered stencil