sfepy.tests.test_quadratures module

sfepy.tests.test_quadratures.get_poly(order, dim, is_simplex=False)[source]

Construct a polynomial of given order in space dimension dim, and integrate it symbolically over a rectangular or simplex domain for coordinates in [0, 1].

sfepy.tests.test_quadratures.symarray(prefix, shape)[source]

Copied from SymPy so that the tests pass for its different versions.


Test if the quadratures have orders they claim to have, using symbolic integration by sympy.


Test if integral of 1 (= sum of weights) gives the domain volume.