# How to get quadrature points and their weights?

**URL:** <https://fenicsproject.discourse.group/t/how-to-get-quadrature-points-and-their-weights/3523>\
**Category:** Uncategorized\
**Created:** [June 14, 2020, 4:47pm UTC](https://fenicsproject.discourse.group/t/how-to-get-quadrature-points-and-their-weights/3523 "2020-06-14T16:47:23Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![bhaveshshrimali](https://yyz2.discourse-cdn.com/free1/user_avatar/fenicsproject.discourse.group/bhaveshshrimali/32/124_2.png) [@bhaveshshrimali](https://fenicsproject.discourse.group/u/bhaveshshrimali)\
**Post date:** [June 14, 2020, 6:20pm UTC](https://fenicsproject.discourse.group/t/how-to-get-quadrature-points-and-their-weights/3523/2 "2020-06-14T18:20:18Z")

</div>

Hi,  
Looking at the repo, [this](https://bitbucket.org/fenics-project/ffc/src/6b621eb0ce8402bd8adc27e2e09e7065d9bad48b/ffc/fiatinterface.py#lines-208) seems to be what you are looking for:

```python
from ffc.fiatinterface import create_quadrature as cquad
shape = "triangle"
deg = 2
scheme = "default"

points, weights = cquad(shape, deg, scheme)

```

---

_[View the full topic](https://fenicsproject.discourse.group/t/how-to-get-quadrature-points-and-their-weights/3523)._
