# Questions tagged [interpolation]

Questions on the interpolation functions in Mathematica (InterpolatingFunction[], Interpolation[], ListInterpolation[], FunctionInterpolation[], InterpolatingPolynomial[], etc.)

108 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
0answers
823 views

### Interpolation on an unstructured (mostly-structured) grid in 4D+

I frequently need to perform interpolations on an unstructured grid. Mostly, with the purpose of filling grid holes and then later continue with regular grid interpolations. Mathematica V9 and V10 ...
0answers
183 views

### InterpolationOrder has no effect on ListContourPlot when the data is of the form {x,y,f[x,y]}

This is related to the issue brought up here, if you want to mark it as duplicate feel free to do so, but it is slightly separate. Take two sets of data, identical except for the form, ...
0answers
189 views

### Accuracy of Chebyshev Interpolation

I have been looking at how to interpolate a function using Chebyshev polynomials. There are several good posts such as this one by Michael E2 and this one by J. M. There is also an example in the help ...
0answers
1k views

### Interpolate throughout a 3d data list without extrapolation

I have a 3D list of data for which I'd like to plot an interpolated surface. There are several ways to achieve this, but none I cannot find a method which ONLY plots the ENTIRE interpolated surface ...
0answers
51 views

### DumpSave and precision of interpolation data

Consider the following prec = 32; x = N[Range[0, 1, 1/10], prec]; f = Interpolation[Transpose@{x, x}]; Then ...
0answers
88 views

### Evaluation of Mod of InterpolatingFunction prevents discontinuity processing by Plot

While trying out @MichaelSeifert's answer to Eliminating Discontinuities When Using Mod with NDSolve and Plot for Oscillators, I came across this odd behavior. Depending on how an ...
0answers
114 views

### Why do some uses of PropertyList crash the kernel?

Bug introduced in 10.1.0 or earlier and fixed in 12.1.0 While looking at the question How to evaluate the "Domain" of an InterpolationObject? I noted that using ...
0answers
70 views

### Plotting InterpolationFunction over Quantities

What's the proper syntax to plot Interpolation functions defined over Quantities? points = {{0, 0}, {1, 1}, {2, 3}, {3, 4}, {4, 3}, {5, 0}}; Change domain to ...
0answers
280 views

### N[Integrate] failing to return an accurate result from an interpolated integrand

I need to N[Integrate] a function Cos[alpha*x]*f(x) between x=0 and 30 at increasing alpha-values. Here f(x) is an interpolated function derived from a set of 120 ...
0answers
613 views

### Cubic polynomial interpolation with velocities listed rather than some points

I am trying to use the function BSplineFunction[] to create a natural cubic spline. Normally what is done is that you specify "SplineDegree -> 3" and include a list of points and it will carry out ...
0answers
29 views

### Numerically solve a non-differential equation with InterpolatingFunction as output

I have some a function that I need to solve numerically over an entire domain (Ideally I would like an InterpolatingFunction object as output), which does not include any derivatives. I have found a ...
0answers
104 views

### How do I truncate an interpolating function?

I have a very large interpolating function and want access the function at one point in time. I am running out of RAM running ...
0answers
119 views

### Parallel evaluation of RandomVariate for an InterpolatingFunction

I need to generate a lot of point according to a given distribution. I don't have an analytic form of this distribution so I am using an InterpolatingFunction of ~100 points computed numerically. I ...
0answers
275 views

### Reducing a FEM 3D Interpolation Function to a 2D Interpolation Function

I'm trying to solve the heat equation in 3D using FEM and back out a slice in the xz plane. My problem is when I define a function that is a slice in the xz plane it uses the full 3D interpolation ...
0answers
265 views

### How to access the components of a vector-valued interpolating function

I have a problem in accessing the components of a vector-valued interpolating function. I have the following data: data = {{0, {1, 0}}, {1, {0, 1}}}; with a ...
0answers
137 views

### Interpolate a 3D surface in 3D

We have taken measurements on a cylindrical flexible item. At each of the measurement locations we have an oscillating motion which is described in terms of three orthogonal directions. The ...
0answers
97 views

### Data Interpolation of deaths by date

I am working with an ebola dataset from Guinea, 2014:(http://currents.plos.org/outbreaks/article/estimating-the-reproduction-number-of-zaire-ebolavirus-ebov-during-the-2014-outbreak-in-west-africa/). ...
0answers
144 views

### Diagonalisation of equations for NDSolve

I have a linear matrix differential equation and I wish to speed up evaluation by diagonalising using eigenvectors. There is an example in Help for finite elements under "swinging beam" that is ...
0answers
121 views

### Update NumericalFunction in NDSolve

I have NDSolve StateData from an NDSolve ...
0answers
637 views

### How to make 3D object smooth?

This thread considers mathematical methods here to make the 3D object smooth but this question consider how to achieve the goal of smoothing a 3D object in Mathematica. I want to get smoother ...
0answers
47 views

### Multivariate polynomial data fitting formula

A short description： consider $f(x,y,z)=x^2+y^2-z^2$ we can know that $f(1,0,1)=0,f(0,1,1)=0$ ,etc. so we can get the roots of this polynomial. Now if given the roots of polynomial, how to solve ...
0answers
58 views

### Extra interpolation in ListPointPlot3D

I'm trying to plot a 3D surface using ListPointPlot3D and it looks almost right, but for some reason it's trying to connect points that should not connect. I think it's confused because the surface is ...
0answers
207 views

### Derivative of an interpolation function is noisy

I have a set of numerical data of 1501 points, in the form of $\{x_i,a_i\}$ which I uploaded to here and here. I need to compute the numerical derivative of this data. In particular, I need the ...
0answers
111 views

### A problem when interpolating the data

I have some data in a form data = {{x,y,f[x,y]},...}, where f[x,y] takes only positive values. When I try to interpolate it, <...
0answers
186 views

### Contour lines in ListContourPlot with InterpolationOrder 0

I have a dataset and would not want Mathematica to interpolate at all while plotting the contours. This is because the data contains essential binning information and the "steps" in the ...
0answers
69 views

### How to get ImageTransformation to not compute the function at *every* pixel

I am using ImageTransformation with a slow function. Is there a way to get ImageTransformation to compute the function at only a ...
0answers
617 views

### Export to PDF: DensityPlot & AllowRasterization->False

How to get production-quality vector graphic exported from Mathematica that looks like what is plotted in Mathematica. Example code: ...
0answers
114 views

0answers
72 views

### Speeding up a minimisation involving Numeric integral and Interpolating function

I am doing a minimisation procedure to obtain best fit parameters a,b,NN for a model involving a numeric integral and an interpolation function. The code as written ...
0answers
132 views

### How to quickly evaluate the same interpolating function many times?

i am trying to use NDSolve on a set of coupled ODEs (roughly 200 equations). In each equation an interpolating function has to be evaluated many times at the same point respectively. So for example ...