I need to interpolate data, that consists of many points in the beginning and a few in the end of the interval, like in the following example:
(* Generate data *)
dat = {#, Exp[-#]} & /@ Append[Range[0, 3, .5], 10];
(* Make interpolations of different orders *)
int = Interpolation[dat, InterpolationOrder -> #] & /@ Range[2, 7];
Show[
ListPlot[dat, PlotRange -> {-1.1, 1.1}],
Plot[Evaluate@Through@int[x], {x, 0, 10}, PlotRange -> All]
]
But this produces quite poor results:
Is it possible somehow to produce more appropriate result?
Exp
will obviously work pretty well. What are you actually trying to acomplish? $\endgroup$