Questions tagged [interpolation]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
12 views

Interpolated function used in Module function not working

i have a problem, that when i want to work with interpolated function in a specific module function, it will not give me any numbers. I tried to have input of the function in my module function, or to ...
0
votes
0answers
38 views

Cubic spline Interpolation Code

I've tried ...
3
votes
0answers
27 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 ...
0
votes
1answer
44 views

Manipulating lists based on conditionals and 3D plotting the smooth surface that bounds a list of points

First of all I want to create a list of evenly spaceed points in a cubic region in $\mathbb{R}^3$. Then I want to keep the points in this list which satisfy a certain condition, i.e. a function that ...
0
votes
0answers
33 views

ParallelTable of NIntegrate of an Interpolating Function

I construct a 2D interpolating function using the following data (MWE): ...
1
vote
0answers
25 views

Why ListInterpolation does not allow InterpolationOrder greater than 2 in the “y” direction?

The order is always reduced to 2 in the "y" direction; I would want a better approximation to my data. Independent of the method (spline or hermite), I can choose any order for the "x&...
4
votes
1answer
63 views

Plotting an InterpolatingFunction outside its domain doesn't raise error messages

Let's make an InterpolatingFunction: if = Interpolation[Transpose[{#, Sin@#} &@Range[0, 4, 0.1]]]; As expected, evaluating ...
2
votes
1answer
238 views

How to put conditions on indices of product

I'm trying to solve for the Lagrangian form of the interpolation polynomial. Right now, I'm just trying to solve for the $l_i(x)$ values which are equal to $l_i(x)=\prod_{j\neq i, j=1}^{n}{\frac{x-x_j}...
2
votes
4answers
378 views

calculate missing values, Interpolation

I've following data: ...
1
vote
1answer
44 views

3D interpolation providing derivatives

I am trying to interpolate 3D data by also providing the 1st order derivaives in all directions, i.e., besides (x,y,z,f), I also have df/dx, df/dy and df/dz. According to the documentation I should do ...
1
vote
2answers
70 views

Finding the arc length of a region defined implicitly with an interpolated function

I begin by defining an interpolation of some data I have stored at this link for brevity. The interpolating function is a function of two variables, x and ...
1
vote
1answer
55 views

What is the meaning/significance/importance of 'order of interpolation' used in Mathematica? [closed]

You can find details here - https://reference.wolfram.com/language/ref/InterpolationOrder.html.
7
votes
2answers
123 views

PeriodicInterpolation does not work in ElementMeshInterpolation

I want to use ElementMeshInterpolation to generate interpolation function with periodic boundary condition. I use below data as an example ...
5
votes
2answers
304 views

Interpolation of non-rectangular data failed

I want to interpolate a type of data which is on a triangular lattice in order to make DensityPlot faster(ListDensityPlot is so slow). However, the interoplation failed with error, no matter setting <...
0
votes
1answer
71 views

Matrix as the discretization of a function $u$ over a rectangle in 3D, how to integrate fast along the axes

I have a function $u$ from 3D to 1D approximated in a list uu and I want to calculate e.g. $$\int_0^1 x\cdot u(x,y,z)dx$$ or $$\int_0^1\int_0^1\int_0^1 u(x,y,z)...
0
votes
0answers
72 views

An issue with ParallelTable

Consider a function function[x_,y_,method_,distr_]:=NIntegrate[distr[x,y,z,t],{z,zmin[x,y],zmax[x,y]},{t,tmin[z,x,y],tmax[z,x,y]},Method->method] Here, ...
4
votes
1answer
199 views

Extending matrix (x,y-axis + data) via Interpolation. Looking for elegant & efficient way to write

Please, feel free to edit the title, if necessary. Hi, this is my code working, but actually, the size of my real dataset is 100x100. So, this is very inefficient way. What would be the most ...
1
vote
2answers
72 views

Calculation using interpolating function

Say I have two replacement rules in terms of interpolating functions. ...
3
votes
3answers
159 views

How can I interpolate time-series data?

I fetch financial data like this: data = FinancialData["SBUX", "Close", {{2013, 1, 1}, {2013, 8, 1}, "Week"}, "Value"]; ...
1
vote
1answer
66 views

Convert list of InterpolatingFunctions to data [closed]

If I have g which is a list of Interpolation functions such (I cannot copy the interpolation functions for some reason): g= How ...
0
votes
1answer
83 views

How to do Interpolation to this function after given b this values

χ[b_] := (Z/k)*NIntegrate[Subscript[f, pp1][q]*Subscript[F, pp1][q]*BesselJ[0, q*b]*q, {q, 0, b}]; bList = Table[b, {b, 0, 5.1 , 0.05}] where: ...
2
votes
2answers
97 views

Efficient sinc interpolation of a list

I'm looking for an efficient way to construct a sinc interpolation i.e. an interpolating function of a list of numbers in the form of a Fourier series with a chosen maximum frequency. The input list ...
1
vote
2answers
74 views

Finding the inverse of possibly non-invertible interpolation function

Consider the following sample code pts = Table[{i, i^2}, {i, -10, 10}]; foo = Interpolation[pts]; Plot[InverseFunction[foo][y], {y, 0, 10}] From the plot, we see ...
3
votes
1answer
142 views

Numerical Integration over experimental numbers

I have a large array {x,y,z} sigma = {{x1,y1,z1},{x2,y2,z2}, ......} where z is a function of x,y: z = f(x,y); the function is known only through its numerical ...
0
votes
0answers
31 views

InterpolatingPolynomial: magnitude of coeffictions

I have a list of the type {{x,y},f} and want to get an InterpolatingPolynomial for that list. The x values all run between 1.3 and 2, the y values between 0 and 1. ...
0
votes
0answers
49 views

ListLinePlot's Interpolation method

I Interpolated some oscillating data points using ListLinePlot[] , and set the InterpolatingOrder->10 . This gives a nice ...
1
vote
4answers
125 views

How to integrate the interpolated data over the region in which it is non-zero?

Consider some toy-function which I then interpolate: ...
5
votes
1answer
67 views

Derivative of a 3D Interpolated function

I cannot get the partial derivative of a set of data. I managed to get the accurate interpolation, but I cannot evaluate its derivatives. Here are my details: ...
32
votes
7answers
8k views

Extracting the function from InterpolatingFunction object

I've used Interpolation[] to generate an InterpolatingFunction object from a list of integers. ...
9
votes
2answers
656 views

Complex continuation of an interpolated function

Context I have a complicated real function defined implicitly by a series of imbricated numerical integration. I need to make a continuation of this function for a complex variable which is easily ...
3
votes
1answer
75 views

InverseFunction and Plot them

I'm trying plot an inverse function ...
0
votes
2answers
89 views

Solve an interpolating function [duplicate]

I have been working with interpolating functions recently and have two functions as a result of an interpolation of two co-ordinate lists. The code I used: ...
2
votes
2answers
126 views

Detrending or removing linear trend from 2D data

I have some data that when plotted I get an inclined graph, as described: ...
0
votes
1answer
28 views

Derivative of predictor function

Given some data dat, we would like to generate a predictor function. Therefore we use ...
1
vote
0answers
45 views

Interpolation for different Parameters

I am rather new to Mathematica and I tried to find a solution for my Problem on my own, also looking through this site and the suggested Similar Questions, but I at least could not make out that my ...
12
votes
4answers
418 views

Interpolation on an unstructured mesh

(Edit: This question is about making a mesh on a 2D surface to work with a 3D surface look at ElementMeshInterpolation on a BoundaryMesh ) I have experimental data in the form of { {x1, y1, z1}, {x2, ...
3
votes
4answers
376 views

Nested optimization problem - Function approximation

I need to maximize the following function (the input to NMaximize below) ...
4
votes
1answer
99 views

ElementMeshInterpolation on a BoundaryMesh

It appears as though ElementMeshInterpolation does not play nice with the element meshes produced by BoundaryMesh ...
2
votes
1answer
40 views

Lagrange polynomials

I need to plot the 9 Lagrange polynomials associated to the points {−4, −3, −2, −1, 0, 1, 2, 3, 4} all on the same axis. So my attempt: ` ...
2
votes
1answer
105 views

Why FEM not giving output at the boundary

I am trying to solve simple 3D Poisson's equation of thermal conduction due to heat generation (q) in a spherical composite, where from 0 to a (inner radius) conductivity is k1 and from a to b (outer ...
3
votes
1answer
235 views

Why Interpolation is slower than BSplineFunction?

This my question is concerned with previous about Tube cross-section. Let's use the same pts as in that question. ...
5
votes
1answer
148 views

Why does the domain of an interpolating function not match the corresponding ParametricNDSolve solution range?

Question I had believed - and mostly observed - that when I use ParametricNDSolve the obtained ParametricFunctions given as the ...
0
votes
1answer
53 views

NDSolve of a 3-D function from interpolated data

I have a 3-D data set (linked in the comment below) obtained via numerical integration. I would like to generate an interpolating function, and then use this function to numerically solve an ODE. For ...
0
votes
1answer
32 views

problem in Interpolation

I made a force diagram into a matrix. How can I have find a value in y for a number in x? I know for 0.1 for example the force becomes 500, or for 0.3 it becomes -500 How do I know how much it will be ...
0
votes
1answer
186 views

Creating a numerical table of values and using an interpolation of them to transform pixels in an image by the ImageTransformation command

I am trying to carry out point "Implementing Map" on this paper Interstellar wormholes however I am using my own equations not those given (only the same method). I have generated a list of ...
5
votes
2answers
1k views

Mathematica Interpolation or approximation

I have lists of points X and Y. {1212,1216,1217,1219...}, {1,2,3,4,5,6...} I combine ...
8
votes
3answers
112 views

Make an InterpolatingFunction periodic

Interpolation can make an InterpolatingFunction periodic with the option ...
8
votes
4answers
2k views

Transform an InterpolatingFunction

I'd like to transform an InterpolatingFunction from NDSolve but can't figure out how. Here's an example. The equation I want to solve is ...
2
votes
1answer
138 views

Interpolation not working

This is probably a very silly question but I am trying to use Interpolation for the following data: ...

1
2 3 4 5
18