# PetscDTGaussQuadrature
create Gauss-Legendre quadrature 
## Synopsis
```
#include "petscdt.h" 
PetscErrorCode PetscDTGaussQuadrature(PetscInt npoints, PetscReal a, PetscReal b, PetscReal *x, PetscReal *w)
```
Not Collective


## Input Parameters

- ***npoints -*** number of points
- ***a -*** left end of interval (often-1)
- ***b -*** right end of interval (often +1)



## Output Parameters

- ***x -*** quadrature points
- ***w -*** quadrature weights





## References

- **** -*** Golub and Welsch, Calculation of Quadrature Rules, Math. Comp. 23(106), 1969.



## See Also
 `PetscDTLegendreEval()`, `PetscDTGaussJacobiQuadrature()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/dm/dt/interface/dt.c.html#PetscDTGaussQuadrature">src/dm/dt/interface/dt.c</A>

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/ksp/tutorials/ex74.c.html">src/ksp/ksp/tutorials/ex74.c.html</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/snes/tutorials/ex31.c.html">src/snes/tutorials/ex31.c.html</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/dt/interface/dt.c)


[Index of all DT routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
