# Simple integration question

**URL:** <https://community.freefem.org/t/simple-integration-question/558>\
**Category:** General Discussion\
**Created:** [August 31, 2020, 7:00am UTC](https://community.freefem.org/t/simple-integration-question/558 "2020-08-31T07:00:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dajopez](https://avatars.discourse-cdn.com/v4/letter/d/a87d85/32.png) [@dajopez](https://community.freefem.org/u/dajopez)\
**Post date:** [August 31, 2020, 7:00am UTC](https://community.freefem.org/t/simple-integration-question/558/1 "2020-08-31T07:00:42Z")

</div>

Hello,

I am trying to integrate the generated function over one of the borders of my domain, but I cannot figure out how. I tried cout \<\< int1d(border)(function) but int1d wants a mesh. To make a 1d mesh I believe I am supposed to use meshL, but that is not a reserved word when I type it in and nothing happens.

Also, what is the best way to log numerical calculations?

Thanks for the help.

---

<div class="post-metadata">

**Author:** ![prj](https://avatars.discourse-cdn.com/v4/letter/p/ecae2f/32.png) [@prj](https://community.freefem.org/u/prj)\
**Post date:** [August 31, 2020, 7:02am UTC](https://community.freefem.org/t/simple-integration-question/558/2 "2020-08-31T07:02:56Z")

</div>

The syntax is `int1d(mesh, border)(function)`.
