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

learn more… | top users | synonyms

0
votes
0answers
10 views

Use interpolation solutions of a system of differential equation into another differential equation [on hold]

I would like to use the numerical solutions of the following system of differential equations ...
5
votes
1answer
62 views

FunctionInterpolation produces many error messages when given high-precision input

Both FunctionInterpolation[1, {x, 0,1.00000000000000004}] and FunctionInterpolation[1.00000000000000004, {x, 0, 1}]; ...
4
votes
0answers
44 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 ...
0
votes
1answer
40 views

Reduce array to specific amount of averages [on hold]

The main issue which needs to be solved is: Let's say I have an array with 8 numbers, e.g. [2,4,8,3,5,4,9,2] and I use them as values for my x axis in an coordinate system to draw a line. But I can ...
5
votes
2answers
156 views

How to speed up Integration of interpolation function?

I have a list of data, and I interpolate it to a function. Then I need to do an integration with the interpolating function. But I found that the speed is unacceptably slow. My data is here (a little ...
0
votes
0answers
29 views

Eigenvalues of a symbolic matrix using interpolating function

I have a 6x6 matrix with entries that depend on dependent and independent variables of an interpolating function. I would like to be able to evaluate the eigenvalues of this matrix using the ...
1
vote
2answers
66 views

Plotting the InterpolatingFunction from NDSolve [closed]

I want to plot the solution of a differential equation which i solve it numerically with NDSolve. Here's the code: ...
1
vote
1answer
83 views

How to make a 3D surface plot from DataSet

I am trying to plot some Aerodynamic data. I import my data like this: data = SemanticImport["roll-damp-due-to-roll-rate-semantic.csv"] The CSV file can be found here: data I want to make a 3D ...
3
votes
2answers
240 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 ...
0
votes
0answers
39 views

Extract Hermite Polynomial from Interpolation of Data

I have a set of data points which I interpolate like s = Import["data.dat"] sinterp = Interpolation[s] LogLogPlot[sinterp[x], {x, 100, 10000}] which gives me ...
1
vote
1answer
44 views

How to apply hermite InterpolatingPolynomial?

I found that to do hermite InterpolatingPolynomial I need to write: InterpolatingPolynomial[{{{1}, 2, 3}, {{2}, 6, 7, 8}}, x] however,i need to apply it on a ...
2
votes
1answer
49 views
5
votes
1answer
121 views

How can I get the interpolation line from Listplot?

My discrete data is: data={{1., 5827.}, {3., 6242.}, {15., 6066.}, {60., 5972.}} I want to get the interpolation line from ListPlot: ...
1
vote
0answers
82 views

DeleteDuplicates [closed]

After having applied "DeleteDuplicates" to a list of data (15000 rows per 3 columns), when I try to interpolate that list of data it gives me back again: "There are duplicated abscissa points in.." ...
0
votes
0answers
43 views

Check if interpolated function passes through a specified region

Is there an efficient way to check if a curve that was obtained as an Interpolating Function (from solving differential equations numerically) passes through a given region? I am solving for two ...
0
votes
2answers
70 views

Using an interpolating solution of NDSolve into an algebraic expression

I would like to use the interpolating solution of NDSolve into an algebraic expression without creating a system of a differential equation and algebraic equation. The example is the following, the ...
1
vote
1answer
55 views

FunctionInterpolation on a 2D function does not match original function when plotted together

I met with a problem when trying to find the interpolation function of a 2 variable function. The function is like below (already simplified for brevity): ...
1
vote
1answer
89 views

Solve the interpolating function

I would have asked how to obtain the x given the y in an interpolating function, and I found the answer from here. But another question raised. I was dealing with measurement of the spectral ...
1
vote
1answer
29 views

Interpolate a data set for a defined time-step

I have a set of data which looks like: ...
4
votes
0answers
43 views

Multi-variable FunctionInterpolation with the range of one variable as a function of another

How can I modify my FunctionInterpolation code so that the boundary of one of the variables is a function of another variable? ...
4
votes
1answer
89 views

Overriding default ExtrapolationHandler

When modeling systems with WhenEvent and NDSolve I found that the default extrapolation settings used in the returned ...
0
votes
0answers
39 views

NSolve with a term that is an interpolating function

I need to solve this system of equations Log[np[x]] + psi[x] + f[np[x], nm[x]] == 0 Log[nm[x]] - psi[x] + f[np[x], nm[x]] == 0 For ...
3
votes
1answer
55 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
0answers
56 views

Smoothing ListContourPlot contours for unstructured grids. Part 2

My question is motivated by the following discussion. Smoothing ListContourPlot contours I need to generate high-quality contour plots for some property generated on a non-rectangular grid. This is ...
1
vote
0answers
60 views

Obtaining values from interpolating functions

A similar question has been asked in the post HERE but the current question is more complicated: I have the following differential system ...
1
vote
0answers
57 views

How to use interpolating functions in NSolve with a piecewise function?

I have a system of two non-linear differential equations that are piecewise, the solutions of which I would like to use to obtain the values of a third variable that is also piecewise. I have trouble ...
4
votes
2answers
84 views

Extract one dimension from an n-dimensional InterpolatingFunction

How can I extract a single dimension from an InterpolatingFunction? As an example: ...
4
votes
1answer
124 views

interpolating a smooth closed surface to a non-uniform data set (ListSurfacePlot3D)

I want to generate a smooth coloured surface from a discrete set of points of the form {x,y,z,F} using the ListSurfacePlot3D. My data set is quite non uniform; the ...
0
votes
0answers
42 views
2
votes
4answers
117 views

2D interpolation

Consider following series of functions Do[f[k][w_] = Exp[-(w-Sin[k])^2], {k, 10}] depicted as Let us tabulate and interpolate them ...
3
votes
1answer
72 views

NDSolve with an interpolating function in Piecewise

Again I have question I hope someone can answer. I made a very simple example illustrating my more difficult problem. I want to solve a differential equation numerically with a conditional in the ...
1
vote
1answer
55 views

Merging of multiple 3D plots with Show using unified ColorBar

This question follows my initial question that can be found here. I created the following 4D plot (3 spacial coordinate + color) by interpolating points separately. The full data (1.4Mb) can be ...
8
votes
1answer
193 views

Produce a spline from a set of {{x, y}, z} points and get its parameters/expression

I have produced a set of points in a variable of the type {{x1, y1}, z1},{{x2, y2}, z2}, ,... }, where {x, y} should be the ...
5
votes
1answer
203 views

Smooth 3D plot with colour of scattered data

I have a set of scattered 3D points with coordinate (x,y,z) and an intensity associated with it. I would like to do a smooth surface with the intensity being represented by the colour. My points ...
4
votes
2answers
107 views

Integrating an interpolating function

I have been using the following NDEigensystem command to generate the eigenfunctions of the laplacian with a square domain: ...
2
votes
1answer
79 views

Help with Time-Seried dataset

I can't seem to figure out the best way for directly inputting interpolated values into a dataset. I turn to your expertise for guidance. So, I have a multi-year time-series dataset. Column 1 is time ...
3
votes
2answers
56 views

Numbering indices / array element positions while creating an array (using 3 argument form)

I am new to Mathematica and trying to create a list that I can use within the InterpolatingPolynomial function. e.g. ...
1
vote
1answer
77 views

Interpolation of a border between regions in ListDensityPlot

Let's say there is a scalar field dependent on two coordinates {x,y}, so a set {x, y, f}, and I use a ListDensityPlot to plot it: ...
0
votes
2answers
93 views

Plotting the solution of a differential equation with its derivative [closed]

The question requires checking of numerical solutions to a differential equation by substituting in those solutions. The original equation is as follows; ...
1
vote
2answers
58 views

Export NDSolve data

I have calculated a solution of a system of differential equations using NDSolve and generated a plot. How could I extract the data of the solutions? The input is ...
0
votes
1answer
48 views

How to exchange interpolating function results of NDSolve between different platforms?

For example, I have a interpolating function solution by NDSolve in a windows x64 platform and want to share the result to users in other windows x86. I tried the DumpSave and ".mx" binary format, ...
1
vote
1answer
32 views

Why does `ListInterpolation` convert integers to reals in the internal representation?

This problem is mentioned in my self-answer here. Here is an illustration of the problem: ...
14
votes
2answers
314 views

Finite Element Method and ElementMeshInterpolation issue in v10.3

Bug introduced in 10.3 I recently installed Mathematica v10.3 and checked a project I was working on few months ago under Mathematica v10.1. In this project I solve a PDE with ...
6
votes
2answers
139 views

Using ListInterpolation to get a vector-valued function

I wanted to construct a ColorFunction from an image, so I tried ...
4
votes
1answer
122 views

Interpolation of data on a 4D grid

I have a 4D grid ...
3
votes
0answers
58 views

Weird behaviour for a vector InterpolatingFunction inside an NDSolve

I have run into some weird behaviour on the part of NDSolve which I find pretty bizarre and which I would like to understand better. Suppose, for the sake of ...
6
votes
2answers
132 views

Getting an explicit representation of the function returned from Interpolation [duplicate]

I am using Interpolation to get an InterpolatingFunction that fits a set of points. For example, ...
2
votes
1answer
108 views
0
votes
1answer
80 views

Interpolate the discrete list into continuous function

I have a data whose list plot shows up following graph I would like to interpolate the missing data and make the function continuous but for particular x-coordinate there is multiple values of $y$ ...
11
votes
2answers
146 views

Unexpected view of the Comsol result when I postprocess it in Mma

I simulated some nonlinear PDE using Comsol. Here one can find the results u=u(x,y) in the form of an Excel table with the terms ...