Interpolation Package that works within Symbolics/MTK


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

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

Either would be excellent tbh.