# How to obtain the Gauss quadrature degree estimated by the form compiler

**URL:** <https://fenicsproject.discourse.group/t/how-to-obtain-the-gauss-quadrature-degree-estimated-by-the-form-compiler/4099>\
**Category:** Uncategorized\
**Created:** [September 15, 2020, 5:19pm UTC](https://fenicsproject.discourse.group/t/how-to-obtain-the-gauss-quadrature-degree-estimated-by-the-form-compiler/4099 "2020-09-15T17:19:00Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![dokken](https://yyz2.discourse-cdn.com/free1/user_avatar/fenicsproject.discourse.group/dokken/32/1560_2.png) [@dokken](https://fenicsproject.discourse.group/u/dokken)\
**Post date:** [September 15, 2020, 5:29pm UTC](https://fenicsproject.discourse.group/t/how-to-obtain-the-gauss-quadrature-degree-estimated-by-the-form-compiler/4099/2 "2020-09-15T17:29:02Z")

</div>

Note that the demo you are considering is quite outdated, and your should consider the [latest version](https://fenicsproject.org/docs/dolfin/2019.1.0/python/demos/hyperelasticity/demo_hyperelasticity.py.html)

To estimate the polynomial degree, you can use:

```auto
from ufl.algorithms.compute_form_data \
    import estimate_total_polynomial_degree

estimate_total_polynomial_degree(form)

```

---

_[View the full topic](https://fenicsproject.discourse.group/t/how-to-obtain-the-gauss-quadrature-degree-estimated-by-the-form-compiler/4099)._
