# Compute average value

**URL:** <https://community.freefem.org/t/compute-average-value/2166>\
**Category:** General Discussion\
**Created:** [December 4, 2022, 7:46pm UTC](https://community.freefem.org/t/compute-average-value/2166 "2022-12-04T19:46:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![larismartins](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/larismartins/32/2712_2.png) [@larismartins](https://community.freefem.org/u/larismartins)\
**Post date:** [December 4, 2022, 7:46pm UTC](https://community.freefem.org/t/compute-average-value/2166/1 "2022-12-04T19:46:38Z")

</div>

Hi there, me again

![jumpaverage](https://canada1.discourse-cdn.com/flex030/uploads/freefem/original/2X/5/5da35096e44771a893ec4d9f7b7b3cf61ee0d708.png)  
I know that freefem has a function to compute (4.28), but does it have one to compute the average value (4.29)? Couldn’t find anything in the documentation

---

<div class="post-metadata">

**Author:** ![frederichecht](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/frederichecht/32/15_2.png) [@frederichecht](https://community.freefem.org/u/frederichecht)\
**Post date:** [September 21, 2023, 8:28am UTC](https://community.freefem.org/t/compute-average-value/2166/3 "2023-09-21T08:28:14Z")

</div>

You have jump and average tool to solve this type of problem, may be,  
see Discontinous Galerkin Method,

see [https://github.com/FreeFem/FreeFem-sources/blob/master/examples/tutorial/LapDG2.edp](https://github.com/FreeFem/FreeFem-sources/blob/master/examples/tutorial/LapDG2.edp) for exemple.
