# Function including less than symbol

**URL:** https://community.freefem.org/t/function-including-less-than-symbol/281
**Category:** General Discussion
**Created:** [March 1, 2020, 3:16pm UTC](https://community.freefem.org/t/function-including-less-than-symbol/281 "2020-03-01T15:16:35Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![sumantkr](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/sumantkr/32/2681_2.png) [@sumantkr](https://community.freefem.org/u/sumantkr)
#### Post date: [March 1, 2020, 3:16pm UTC](https://community.freefem.org/t/function-including-less-than-symbol/281/1 "2020-03-01T15:16:35Z")

</div>

Dear Friends,  
I am new in learning FreeFEM++. Can anyone tell me about the meaning of function defined like

func k= 1 + 2\*(x\<1)\*(x\>0);

thanks

---

<div class="post-metadata">

### Author: ![Larik](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/larik/32/101_2.png) [@Larik](https://community.freefem.org/u/Larik)
#### Post date: [March 1, 2020, 9:12pm UTC](https://community.freefem.org/t/function-including-less-than-symbol/281/2 "2020-03-01T21:12:40Z")

</div>

func k= 1 + 2\*(x\<1)\*(x\>0); is equal to

real function k(real x){  
if((x\>0)&&(x\<1))  
{  
return 3;  
}  
else  
{  
return 1;  
}  
}

---

<div class="post-metadata">

### Author: ![sumantkr](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/sumantkr/32/2681_2.png) [@sumantkr](https://community.freefem.org/u/sumantkr)
#### Post date: [March 2, 2020, 3:40am UTC](https://community.freefem.org/t/function-including-less-than-symbol/281/3 "2020-03-02T03:40:05Z")

</div>

Thanks Larik, it helps a lot.  
I think instead of 3 , we should have 2 according to the equation.

---

<div class="post-metadata">

### Author: ![Larik](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/larik/32/101_2.png) [@Larik](https://community.freefem.org/u/Larik)
#### Post date: [March 2, 2020, 3:51am UTC](https://community.freefem.org/t/function-including-less-than-symbol/281/4 "2020-03-02T03:51:30Z")

</div>

Perhaps, 1+2=3. But it is not exactly;)

---

<div class="post-metadata">

### Author: ![sumantkr](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/sumantkr/32/2681_2.png) [@sumantkr](https://community.freefem.org/u/sumantkr)
#### Post date: [March 2, 2020, 4:04am UTC](https://community.freefem.org/t/function-including-less-than-symbol/281/5 "2020-03-02T04:04:14Z")

</div>

Yes, I got it.  
Thanks a lot dear.

---

<div class="post-metadata">

### Author: ![sumantkr](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/sumantkr/32/2681_2.png) [@sumantkr](https://community.freefem.org/u/sumantkr)
#### Post date: [March 5, 2020, 6:54am UTC](https://community.freefem.org/t/function-including-less-than-symbol/281/6 "2020-03-05T06:54:56Z")

</div>

Hello Friend,  
Can you suggest me the way of computing the system of pde in FreeFem++ with one simple example.
