# Spline Interpolation

**URL:** <https://community.freefem.org/t/spline-interpolation/1948>\
**Category:** General Discussion\
**Created:** [August 19, 2022, 8:59am UTC](https://community.freefem.org/t/spline-interpolation/1948 "2022-08-19T08:59:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Qianrui](https://avatars.discourse-cdn.com/v4/letter/q/9fc348/32.png) [@Qianrui](https://community.freefem.org/u/Qianrui)\
**Post date:** [August 19, 2022, 8:59am UTC](https://community.freefem.org/t/spline-interpolation/1948/1 "2022-08-19T08:59:44Z")

</div>

Hello, can freefem + + use spline interpolation？ 😃

---

<div class="post-metadata">

**Author:** ![julienG](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/julieng/32/222_2.png) [@julienG](https://community.freefem.org/u/julienG)\
**Post date:** [August 19, 2022, 9:38am UTC](https://community.freefem.org/t/spline-interpolation/1948/2 "2022-08-19T09:38:12Z")

</div>

with [gsl](https://doc.freefem.org/documentation/plugins.html)

---

<div class="post-metadata">

**Author:** ![Qianrui](https://avatars.discourse-cdn.com/v4/letter/q/9fc348/32.png) [@Qianrui](https://community.freefem.org/u/Qianrui)\
**Post date:** [August 23, 2022, 10:41am UTC](https://community.freefem.org/t/spline-interpolation/1948/3 "2022-08-23T10:41:20Z")

</div>

Thank you for your reply. Is there an example of freefem + + for spline interpolation?

---

<div class="post-metadata">

**Author:** ![julienG](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/julieng/32/222_2.png) [@julienG](https://community.freefem.org/u/julienG)\
**Post date:** [August 23, 2022, 11:30am UTC](https://community.freefem.org/t/spline-interpolation/1948/4 "2022-08-23T11:30:29Z")

</div>

Yes, the example code for gsl is here [gsl.edp](https://github.com/FreeFem/FreeFem-sources/blob/master/examples/plugin/gsl.edp), it has some examples for usage of splines.

---

<div class="post-metadata">

**Author:** ![Qianrui](https://avatars.discourse-cdn.com/v4/letter/q/9fc348/32.png) [@Qianrui](https://community.freefem.org/u/Qianrui)\
**Post date:** [September 17, 2022, 3:36am UTC](https://community.freefem.org/t/spline-interpolation/1948/5 "2022-09-17T03:36:00Z")

</div>

Hello, do you have to build your own finite element space when this spline interpolation is used in FreeFem++? Take Lagrange interpolation as an example to define the finite element space, feaspace Wh (Th, P2). How to define this spline?
