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

learn more… | top users | synonyms

0
votes
0answers
29 views

Error message when using Method -> “Spline” in Interpolation

I'm using LTNOspline = Interpolation[DiscreateLT, Method -> "Hermite"] where ...
1
vote
1answer
104 views

Approximating Integral under 2D Interpolation function

First, I have already been working on this problem, and have asked a similar question previously here. I am trying to find the integrals of 2D interpolation functions that are output from ...
4
votes
5answers
606 views

Interpolation gone awry?

Here's a simple example of an interpolation function that seems to me to have gone awry. Maybe someone would be so kind as to tell my what's going on with this? ...
3
votes
2answers
67 views

How to get value from InterpolatingFunction

I have numerically solved a system of ODEs using NDSolve. I can plot them using ParametricPlot but I am having trouble evaluating them at specific points and ...
3
votes
0answers
40 views

What is the Chebyshev method for `InterpolationFunction`?

With InterpolationOrder -> All, some methods of NDSolve returns interpolations with ...
2
votes
1answer
66 views

Offset parametric curve

I have a function ($a(x)=0.00005x^4-0.01x^3+0.68x^2-23.087x+322$) which defines a profile desired. I need to get a new function that is shifted relative to the first function using a list (...
7
votes
2answers
132 views

Inflection point and curvature

Through a coordinates list and then interpolating them I got a $f[x]$. ...
13
votes
2answers
608 views

Data extraction from a picture of a graph

How can I extract data from this picture of a graph? i = Import["http://i.stack.imgur.com/Ac8m0.png"]; The caption of the picture reads: " Two-dimensional ...
0
votes
0answers
33 views

Interpolation function inside a numerical integral [on hold]

Hello all and thanks in advance for your comments, I will be brief to explain my doubt. If you need any more information, please ask me. I have an interpolation function which comes from the ...
1
vote
3answers
70 views

Derivative of a 2D Interpolating function

I cannot find a way to obtain the partial derivatives of a 2D Interpolating Function obtained with ListInterpolation. I didn't find anything useful on the web. Any ...
1
vote
1answer
47 views

Integration of a function of interpolating functions

I need to calculate the integral of a function of interpolating functions. Being more specific, the function I want to integrate is the following ...
1
vote
1answer
50 views

Partial Differentiation with interpolation function

I'm trying to take the partial differential of each component of an interpolation summed together. It works fine when I do it with an algebraic expression, but I can't understand why it doesn't work ...
3
votes
2answers
67 views

Picking a dimension from an interpolating function

I have an interpolation function. Lets think of it as f={fx,fy,fz}. I would like to operate on the fx part of interpolation and say, multiply it by five and plot ...
0
votes
1answer
89 views

Importing Data to interpolation

I have an external file in extension XLS with looks as follows: This file can be obtained by the link below: Velocidade Angular With certainty this file is generating a list inappropriate for the ...
0
votes
1answer
39 views

Interpolating data while imposing the behavior of a cumulative distribution function

I would like to interpolate a data set which represents a curve of an empirical cumulative distribution function (CDF). Hence, the y entries are between 0 and 1, continuous and non-decreasing, and at ...
1
vote
2answers
82 views

Interpolating initial conditions of orbits

I have a data file containing the $(x,y,p_x,p_y)$ initial conditions of two-dimensional orbits. Let's plot them on the $(x,y)$ plane. ...
1
vote
1answer
71 views

Predicting the initial conditions of orbits inside a closed curve

I have a data file containing the four orbital element $(x,y,p_x,p_y)$ of a two-dimensional closed loop orbit. Note that the exact implicit equation of the orbit is not known. The plot of the 2D ...
0
votes
1answer
30 views

Defining a function using an InterpolatedFunction from a data set

suppose I have two data sets A and B, which are tables/lists/arrays/whatever Mathematica calls it, from an imported CSV. there'd be lines that look like this: ...
2
votes
3answers
113 views

How to integrate numerically the product of result of NDsolve? [closed]

I am going to integrate the product of the results of NDsolve, in fact If x and y are the results as interpolating function, How I can integrate x*y numerically? <...
2
votes
3answers
130 views

NDSolve and differentiation of Abs

I have found several questions about the derivative of Abs and how it is not defined in the complex plane. What I have not found yet is a precise and simple ...
5
votes
1answer
92 views

How does ListInterpolation work?

ListInterpolation takes an array of data and interpolates between the entries. Let us interpolate between the elements of the identity matrix. For reference, this ...
8
votes
1answer
54 views

Is there a way to change the interpolation scheme used in ListDensityPlot?

Recently I was trying to answer this question on how to make a smooth ListDensityPlot when I found that the output depends on the order of the data if you are using ...
0
votes
0answers
63 views

How to plot an interpolating function from data showing the median values and the scatter around the medians

I have a list of data points $x_{i}$, $y_{i,16}$, $y_{i,50}$, and $y_{i,84}$ where $y_{i}$ respectively correspond to $16th$, $50th$ and $84th$ percentiles value of the function at positions $x_{i}$. ...
5
votes
3answers
242 views

How to (correctly) interpolate an array of points?

I'm trying to obtain an interpolation function for points of an x^(-5) function (which goes to infinity at x = 0). ...
6
votes
1answer
152 views

Smoothing out data points in a ListDensityPlot

I stumbled upon this problem when I was trying to make some nice smooth ListDensityPlots of my numerical data. In short, my problem is that I let Mathematica plot two copies of basically the exact ...
12
votes
2answers
665 views

Joining points into 3D surface

This seems like a simple problem, but I can't find any questions like it here so I'm making a new one. Apologies if I missed one. I have a list of points contained in a file which can be visualized ...
5
votes
4answers
220 views

Interpolation of unevenly spaced data, is it possible?

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: ...
0
votes
0answers
28 views

Putting constraints on interpolation [duplicate]

I am attempting to construct a function by interpolation, but I'd like it to be strictly increasing and convex. Is there an easy way to add constraints to Interpolation or should I change it further ...
5
votes
1answer
73 views

FunctionInterpolation produces many error messages when given high-precision input [duplicate]

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

Reduce array to specific amount of averages [closed]

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
184 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 ...
1
vote
2answers
75 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: ...
2
votes
1answer
105 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
263 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 ...
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
59 views
5
votes
1answer
128 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
84 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
46 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
73 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 ...
2
votes
1answer
60 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
99 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
32 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
103 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
40 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
60 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
62 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
64 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 ...