$int = Interpolation[{{0, 0}, {1, 1}, {2, 2}},
InterpolationOrder -> 1]
FunctionRange[{$int[x], x > 0.5}, x, y]
returns Unable to find the range with the available methods.
Of course $int[1.2] or any other value gives a number, so I am wondering if FunctionRange can work at all with interpolation. Any clue?
Needs["DifferentialEquations\InterpolatingFunctionAnatomy`"];domain = InterpolatingFunctionDomain[$int]` – Craig Carter Jun 29 '23 at 16:51InterpolatingFunctionDomain[$int]calls$int["Domain"], so six of one, half-a-dozen of the other, imo. I never use theInterpolatingFunctionAnatomypackage anymore. The package is short and can be inspected withNotebookOpen[FindFile["DifferentialEquations`InterpolatingFunctionAnatomy`"]]. It consists of syntactic sugar forif[meth]for some of the methods found withif["Methods"]. It does have usage message that tell what the methods do, but just for the few it covers. – Michael E2 Jun 29 '23 at 18:14MinMax[$int["ValuesOnGrid"]]will give the range of the function values at the interpolation nodes. ForInterpolationOrder -> 1, that will be equivalent to the entire function range (ignoring the constraintx > 0.5). It will also ignore any local extrema of the polynomial interpolants for higher-order interpolations. Thus it might be considered a quick approximation of the function range, which might be useful in some applications, especially when the grid-spacing is small. – Michael E2 Jun 29 '23 at 18:25