symfem.polynomials.degree_computation¶
Functions to compute the degree of polynomials.
Functions¶
|
Get the degree of a sympy monomial. |
|
Get the degree of a polynomial on a simplex cell. |
|
Get the degree of a polynomial on a tensor product cell. |
|
Get the degree of a polynomial on a prism. |
|
Get the degree of a polynomial on a pyramid. |
|
Get the Lagrange degree of a polynomial on a reference cell. |
Module Contents¶
- symfem.polynomials.degree_computation.monomial_degree(term: sympy.core.expr.Expr, vars: tuple[sympy.Symbol, Ellipsis] = x) int¶
Get the degree of a sympy monomial.
- symfem.polynomials.degree_computation.simplex_degree(polynomial: sympy.core.expr.Expr, vars: tuple[sympy.Symbol, Ellipsis] = x) int¶
Get the degree of a polynomial on a simplex cell.
- Parameters:
polynomial – The polynomial
- Returns:
The degree of the polynomial on a simplex cell
- symfem.polynomials.degree_computation.tp_degree(polynomial: sympy.core.expr.Expr, vars: tuple[sympy.Symbol, Ellipsis] = x) int¶
Get the degree of a polynomial on a tensor product cell.
- Parameters:
polynomial – The polynomial
- Returns:
The degree of the polynomial on a tensor product cell
- symfem.polynomials.degree_computation.prism_degree(polynomial: sympy.core.expr.Expr, vars: tuple[sympy.Symbol, Ellipsis] = x) int¶
Get the degree of a polynomial on a prism.
- Parameters:
polynomial – The polynomial
- Returns:
The degree of the polynomial on a prism
- symfem.polynomials.degree_computation.pyramid_degree(polynomial: sympy.core.expr.Expr, vars: tuple[sympy.Symbol, Ellipsis] = x) int¶
Get the degree of a polynomial on a pyramid.
- Parameters:
polynomial – The polynomial
- Returns:
The degree of the polynomial on a pyramid
- symfem.polynomials.degree_computation.degree(reference: symfem.references.Reference, polynomial: symfem.functions.Function, vars: tuple[sympy.Symbol, Ellipsis] = x) int¶
Get the Lagrange degree of a polynomial on a reference cell.
- Parameters:
reference – The reference cell
polynomial – The polynomial
- Returns:
The degree of the polynomial on the reference cell