Shipping costs for Variational and Finite Element Methods: A Symbolic Computation Approach