degawa / dictos

Symbolic discretization tools for finite difference method on regular and staggered grid
MIT License
1 stars 0 forks source link

unordered results #43

Closed degawa closed 2 years ago

degawa commented 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)