# Faire appel à une fonction trouvée dans un autre fichier

**URL:** https://community.freefem.org/t/faire-appel-a-une-fonction-trouvee-dans-un-autre-fichier/299
**Category:** General Discussion
**Created:** [March 10, 2020, 10:50pm UTC](https://community.freefem.org/t/faire-appel-a-une-fonction-trouvee-dans-un-autre-fichier/299 "2020-03-10T22:50:40Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![RahmaJERBI](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/rahmajerbi/32/484_2.png) [@RahmaJERBI](https://community.freefem.org/u/RahmaJERBI)
#### Post date: [March 10, 2020, 10:50pm UTC](https://community.freefem.org/t/faire-appel-a-une-fonction-trouvee-dans-un-autre-fichier/299/1 "2020-03-10T22:50:40Z")

</div>

Bonjour à tous,  
Je vous prie de bien vouloir m’aider.  
J’ai une fonction appelée solution et je voudrais l’utiliser dans un autre fichier. Comment faire pour l’appeler?  
Merci pour votre attention et votre aide.

---

<div class="post-metadata">

### Author: ![AFourmont](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/afourmont/32/56_2.png) [@AFourmont](https://community.freefem.org/u/AFourmont)
#### Post date: [March 12, 2020, 8:43am UTC](https://community.freefem.org/t/faire-appel-a-une-fonction-trouvee-dans-un-autre-fichier/299/2 "2020-03-12T08:43:48Z")

</div>

Je ne comprends pas votre question. Si vous voulez vous interfacer votre propre fonction avec FreeFEM,  
la documentation peut vous aider :  
[https://doc.freefem.org/documentation/developers.html#a-first-example-myfunction-cpp](https://doc.freefem.org/documentation/developers.html#a-first-example-myfunction-cpp)

---

<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: [March 12, 2020, 5:57pm UTC](https://community.freefem.org/t/faire-appel-a-une-fonction-trouvee-dans-un-autre-fichier/299/3 "2020-03-12T17:57:13Z")

</div>

remarque you can include eep file in a other file.

include “script;edp”

when after you can use function defined in script.edp

see fluidStruct.edp for exemple

---

<div class="post-metadata">

### Author: ![RahmaJERBI](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/rahmajerbi/32/484_2.png) [@RahmaJERBI](https://community.freefem.org/u/RahmaJERBI)
#### Post date: [March 13, 2020, 9:19am UTC](https://community.freefem.org/t/faire-appel-a-une-fonction-trouvee-dans-un-autre-fichier/299/4 "2020-03-13T09:19:52Z")

</div>

Je vous remercie !  
J’ai une fonction appelée “solution” trouvée dans un fichier appelé “test” et je voudrais l’utiliser dans un autre fichier appelé “résolution”.  
Ma question est donc : comment faire pour l’appeler ?  
Comme dans le logiciel MATLAB.

---

<div class="post-metadata">

### Author: ![RahmaJERBI](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/rahmajerbi/32/484_2.png) [@RahmaJERBI](https://community.freefem.org/u/RahmaJERBI)
#### Post date: [March 13, 2020, 9:30am UTC](https://community.freefem.org/t/faire-appel-a-une-fonction-trouvee-dans-un-autre-fichier/299/5 "2020-03-13T09:30:28Z")

</div>

Je vous remercie pour votre aide.
