Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [interpolation]

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

2
votes
2answers
21 views

Calculation using interpolating function

Say I have two replacement rules in terms of interpolating functions. ...
0
votes
1answer
44 views

2D interpolating function doesn't reproduce data

I have the following 2D data set: ...
1
vote
1answer
59 views

Problem with fit

I am trying to find a proper matching function for the following data set: ...
8
votes
1answer
117 views

Meaning of InterpolationOrder -> All for multidimensional interpolation

What specific method does Interpolation use for unstructured multi-dimensional data when we set InterpolationOrder -> All? ...
0
votes
0answers
28 views

Optimisation in the solution of Newton Interpolation

I have an exercise in which I have to solve the following Problem: Given Newton formula for the representation of a polynomial $q(x)$ given the values $y_j$ of $q(x)$ for $j$ between 0 and 5 $q(x)= \...
1
vote
1answer
54 views

FindFormula and Piecewise

The command FindFormula does not give me a right formula for simple data like this: ...
3
votes
0answers
25 views

DumpSave and precision of interpolation data

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

Interpolation of data from table

How to do the interpolation of this data, so that I can plot the interpolated functionafter interpolation dat1 = Import["newdel(0.5).txt", "Table"] The entries ...
1
vote
1answer
46 views

How to address the domain of an outputed interpolating function

I am solving a system of ODEs with DSolve, which returns the results as interpolating functions. The solver always stops after some finite time because of resolution issues, so the domain of the ...
0
votes
0answers
64 views

How to remove unnecessary filling in ListPlot3D [duplicate]

I have the XYZ data points of this link (also here). If I plot this data ...
1
vote
1answer
58 views

Smooth plot of coarsely spaced table values [closed]

In a simpler first case I plotted reasonably spaced (stability) contours by selecting a sequence of k values, ...
5
votes
2answers
344 views

Derivative of an interpolated function

I am trying to take the derivative of an interpolated function. I am given the function values and the derivatives at some irregular points. Here is my minimal working example to reproduce the error: ...
0
votes
0answers
39 views

What is causing this error in the Interpolation function?

I am using trying to understand someone else's code in Mathematica for the Finite Difference Method, except I changed a few values, but none of the code itself. Everything except for the Interpolation ...
5
votes
0answers
39 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 ...
0
votes
1answer
103 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 values ...
0
votes
1answer
91 views

Creating a numerical table of values from an interpolating function resulting from NDSolve [closed]

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). Part 1 I am trying to create a ...
7
votes
2answers
114 views

Bug in VectorFieldPlot[] with InterpolatingFunction[]?

Bug introduced in 11.3 or earlier and persisting through 11.3.0 or later While looking at How do I Plot a Divergence?, I thought to suggest the following as a solution to the OP's problem (where <...
3
votes
3answers
74 views

Merge pairs in a list that have the same 1st element by averaging the the 2nd elements

I'm trying to do interpolation on a large list of data of the format {{x1, y1}, {x2, y2}, {x3, y3}, ..., {xn, yn}} that is exported from a simulation. ...
1
vote
3answers
79 views

Pass arguments to a function within a function within a function

I want to perform an integration of f[w,t,kx,ky] over t for several different functions f. ...
1
vote
2answers
62 views

Solve from interpolation function

I have the following list and its interpolating finction x1: point={{0., 0.}, {0.2, 1.}, {0.25, 1.5}, {0.3, 1.}, {0.5, 0.}};x1 = Interpolation[point] I would ...
5
votes
0answers
60 views

Why do some uses of PropertyList crash the kernel?

A support case with the identification [CASE:4222617] was created. While looking at the question How to evaluate the "Domain" of an InterpolationObject? I noted that using ...
2
votes
2answers
85 views

How to evaluate the “Domain” of a Parametric Function?

In a simple example I try to calculate the time the solution x[t] passes a second time x[t]==1. ...
7
votes
2answers
216 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 ...
0
votes
1answer
65 views

NDSolve and interpolating function

What could possibly went wrong in my code? Basically, I am solving the differential equation $\textbf{ode}$ using $\textbf{NDSolve}$. But mathematica says, NDSolve::mxst: Maximum number of 10000 steps ...
0
votes
0answers
23 views

Why do I keep getting an interpolation error?

Whenever I run this code, it does not seem to be evaluating anything past the Evecs. There are other definitions/parameters involved in running the code. I am just not sure why it keeps saying "first ...
0
votes
1answer
32 views

How to close the contourplot3D from top?

I received a very nice solution by Chip Hurst to make my 3DContourPlots smooth and closed in here. Now I have another problem that is simpler but I still want to know the ideas of the others. The data ...
1
vote
0answers
22 views

Plotting 3D points with function as contour

so I have a grid of points in 2D $(x_i, y_i)$, and a function $f(x_i,y_i)$. I plotted them together like this: -- Now I would like to do the same with a grid of 3D points $(x_i, y_i,z_i)$ and a ...
0
votes
0answers
32 views

Interpolation of a list defined on a region

I have a three-dimensional table (each element has the form { x, y, f( x, y ) }), and the x, y coordinates spans a region of a parallelogram. If I do a list contour plot of the data, it gives the ...
3
votes
1answer
87 views

Approximating decay rate of an amplitude and frequency of an oscillating function

I have an InterpolatingFunction constructed from a discrete set of values obtained by numerical methods. Let's denote it $f(x)$. The function demonstrates an ...
2
votes
2answers
107 views

Interpolator surface

Writing: ...
0
votes
1answer
70 views

Understanding Energy Function [closed]

I am trying to implement as rigid as possible mesh interpolation solution provided in this article called "As-Rigid-As-Possible Surface Morphing" http://citeseerx.ist.psu.edu/viewdoc/download?doi=10....
5
votes
1answer
119 views

Recycling solutions of multidimensional NDSolve

Dear wolfram community, I hope my problem is clear and easy to solve. I have already solved the following heat equation over a domain: ...
1
vote
1answer
67 views

Use InterpolatingFunction in differential equations involving derivatives and integrals of the InterpolatingFunction [duplicate]

I solved a problem of solid mechanics, 11 unknown components of displacement functions, i.e., ut0[x, y], wt0[x, y], wc0[x, y], .... ...
3
votes
4answers
196 views

Continuous non-piecewise equivalent of smoothstep function?

I have a smooth step function given by the piecewise function ...
5
votes
2answers
82 views

Basic 3D Interpolation Failing

I've seen a few other posts asking about the "unstructured grid" error in Interpolation. Here's a minimal (non)working example of the issue: ...
0
votes
1answer
73 views

InterpolatingFunction gives different result when plot [closed]

I solve a series of ODE equations by NDSolve({t,0,200} is the region), it gives results in the form of ...
-1
votes
1answer
71 views

Interpolation in a data set [closed]

I have the given dataset dat1 = {{0, 0, 1, 10}, {0, 0, 2, 5}, {0, 1, 1, 4}, {0, 1, 2, 3.5}, {1, 0, 1, 0.8}, {1, 0, 2, 0.6}, {1, 1, 1, 0.4}, {1, 1, 2, 0.2}} In ...
0
votes
1answer
71 views

Numerically integrate over an Interpolating function [closed]

I would like to integrate over an interpolating function, which itself is the output of NDSolve in the following code. Unfortunately, I get an error code, saying ...
2
votes
1answer
83 views

Integrating an interpolating function: Hermite vs. BSpline

I have an interpolation through a list of points, which I need to integrate. The minimal working example looks as follows: ...
0
votes
1answer
79 views

Find interpolation with derivatives at some points

I am trying to find out how to find a good interpolation of a periodic function I have from some data points. The only problem is that I need to make sure that derivatives at the starting and ending ...
1
vote
0answers
27 views

how to use interpolating functions to smoothly paint a polygon? [duplicate]

consider 4 different colors on the nodes (with different parameter values) how to interpolate when the color values are given on the nodes using the constructed interpolation functions to paint the ...
3
votes
1answer
64 views

color interpolation using interpolating functions on a quadrilateral

How can I use the interpolating functions I constructed for the four nodes of a quadrilateral to use as parameters to smoothly paint the edges of the quadrilateral when 4 different color values are ...
0
votes
0answers
16 views

Polynomial interpolation using Wachspress construction to interpolate color on a quadrilaterial

My questions is how to use Rational Polynomial interpolants to paint the edges of a quadrilateral smoothly using 4 different colors. My tutor has taught this two-variable version of Pade expansion ...
0
votes
1answer
51 views

Finding the best representation of a numerically-inverted function via InterpolatingPolynomial and/or variations

Below is the routine I am using to sort of represent the numerically-inverted function $TP$. Basically I am finding a necessary interpolating polynomial $TPint$ that fits with the data points given by ...
1
vote
1answer
72 views

Defining the boundary conditions of a PDE

I'm first time use Mathematica and here is my trying of solving equation ...
1
vote
2answers
61 views

How to color the nodes of a quadrilateral polygon

say we have the list of points a = {{1, 1}, {2, 1}, {2, 2}, {1, 2}, {1, 1}},it is a simple square, how can we make color the nodes( in which that the nodes and the ...
1
vote
1answer
52 views

Interpolation error of InterpolatingPolynomial[]

this is my first post so if I have any error while writing this, I'm sorry. I had to do a polynomic interpolation for one of my lab experiments, and I need to get the error from it in order to ...
0
votes
1answer
58 views

how to color edges of a convex polygon,say a square, using interpolation with respect to the color in Mathematica

How do I color edges of a convex polygon, say a square, using interpolation with respect to the color (to form parametric polynomials) in Mathematica, so that the colors displayed on the 4 edges would ...
1
vote
1answer
43 views

The intersection of two “mesh surfaces from points” which are not convex

After solving the problems with determining the intersection of two mesh surfaces I came across an additional obstacle. Link to the previous question enter link description here Unfortunately, I ...