How to use monotonic interpolation instead of linear?

Using the same notation as in your example, try:

Φm(ϕ, t) = interpolate(range(0, 7, length(ϕ)), ϕ, SteffenMonotonicInterpolation())(t)
2 Likes