# Interpolation Package that works within Symbolics/MTK

**URL:** <https://discourse.julialang.org/t/interpolation-package-that-works-within-symbolics-mtk/114970>\
**Category:** Modelling & Simulations\
**Tags:** interpolations, symbolics\
**Created:** [May 30, 2024, 2:42pm UTC](https://discourse.julialang.org/t/interpolation-package-that-works-within-symbolics-mtk/114970 "2024-05-30T14:42:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![HSnowden](https://avatars.discourse-cdn.com/v4/letter/h/58f4c7/32.png) [@HSnowden](https://discourse.julialang.org/u/HSnowden)\
**Post date:** [May 30, 2024, 2:42pm UTC](https://discourse.julialang.org/t/interpolation-package-that-works-within-symbolics-mtk/114970/1 "2024-05-30T14:42:19Z")

</div>

Hello,

I have a use case that requires an interpolation to be used from within a Modeling Toolkit Model as well as Symbolics Num’s. From what I understand the only package that can do this is DataInterpolations.jl, at least my testing with Dierckx.jl said no. However, I also need this package to extrapolate and specifically extrapolate flatly at the boundary conditions. Is there a way to alter DataInterpolations.jl so that it does flat extrapolation or another package with Symbolics.jl compatability.

Thanks for any help

---

<div class="post-metadata">

**Author:** ![ChrisRackauckas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chrisrackauckas/32/77_2.png) [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)\
**Post date:** [May 30, 2024, 3:03pm UTC](https://discourse.julialang.org/t/interpolation-package-that-works-within-symbolics-mtk/114970/2 "2024-05-30T15:03:56Z")

</div>

We can add that interpolation to DataInterpolations.jl. It also wouldn’t be so hard to add this same extension to Dierckx.jl

> <https://github.com/SciML/DataInterpolations.jl/blob/master/ext/DataInterpolationsSymbolicsExt.jl>

---

<div class="post-metadata">

**Author:** ![HSnowden](https://avatars.discourse-cdn.com/v4/letter/h/58f4c7/32.png) [@HSnowden](https://discourse.julialang.org/u/HSnowden)\
**Post date:** [May 30, 2024, 3:56pm UTC](https://discourse.julialang.org/t/interpolation-package-that-works-within-symbolics-mtk/114970/3 "2024-05-30T15:56:30Z")

</div>

Either would be excellent tbh.
