# Newbie question about integrating

**URL:** https://community.freefem.org/t/newbie-question-about-integrating/3621
**Category:** General Discussion
**Created:** [December 9, 2024, 3:38am UTC](https://community.freefem.org/t/newbie-question-about-integrating/3621 "2024-12-09T03:38:15Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![oldoldman](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/oldoldman/32/2725_2.png) [@oldoldman](https://community.freefem.org/u/oldoldman)
#### Post date: [December 9, 2024, 3:38am UTC](https://community.freefem.org/t/newbie-question-about-integrating/3621/1 "2024-12-09T03:38:15Z")

</div>

Hi guys,  
Have a look at the following script

```c++
mesh m2=square(1,1);
cout
<< int1d(m2)(2) << " "
<< int2d(m2)(2)
<< "\n";

```

I have some basic idea of integrating , which means sum something up. The script outputs 4 and 2. Which means some area in the m2?  
Many thanks.

---

<div class="post-metadata">

### Author: ![oldoldman](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/oldoldman/32/2725_2.png) [@oldoldman](https://community.freefem.org/u/oldoldman)
#### Post date: [December 9, 2024, 4:02am UTC](https://community.freefem.org/t/newbie-question-about-integrating/3621/2 "2024-12-09T04:02:08Z")

</div>

Got it.  
int1d(m2)(2) means 2 x length of the unit square,  
int2d(m2)(2) means 2 x area of the unit square.
