Linked Questions

39 votes
7 answers
11k views

Extracting the function from InterpolatingFunction object

I've used Interpolation[] to generate an InterpolatingFunction object from a list of integers. ...
Seleren's user avatar
  • 493
43 votes
6 answers
6k views

How to splice together several instances of InterpolatingFunction?

I have a set of InterpolatingFunction returned by NDSolve which are valid over different (but overall continuous) domains. How ...
polyglot's user avatar
  • 775
60 votes
1 answer
3k views

What's inside InterpolatingFunction[{{1., 4.}}, <>]?

I'm curious what's inside the InterpolationFunction object? For example: ...
xslittlegrass's user avatar
17 votes
3 answers
5k views

Chebyshev Approximation

Is there functionality in Mathematica to expand a function into a series with Chebyshev polynomials? The Series function only approximates with Taylor series.
Sogartar's user avatar
  • 295
17 votes
2 answers
2k views

How to improve this plot?

In general, the quality of Mathematica graphics is beyond praise. However, the output of Plot3D command is somewhat unexpected in the following code. Let's solve the Dirichlet problem for the ...
user64494's user avatar
  • 26.4k
10 votes
4 answers
661 views

Taking Part of an InterpolatingFunction

I want a function to extract part of a one-dimensional InterpolatingFunction, similar to how Take works on lists. Based on the ...
Chris K's user avatar
  • 20.2k
1 vote
2 answers
2k 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 ...
Sergio Giardino's user avatar
6 votes
1 answer
300 views

Convert interpolating function to a Bezier curve

I've been wondering, is there a way to convert an interpolation into a sequence of BezierCurve objects that form each step in the interpolation? There is an easy ...
Michael E2's user avatar
  • 236k
6 votes
2 answers
793 views

Solving wave equation with singular initial conditions

I am trying to compute the solution to the wave equation using NDSolveValue and singular initial displacement (continuous, but not differentiable in a point). I ...
CharlelieB's user avatar
7 votes
1 answer
169 views

Are derivatives from interpolating functions created by NDSolve using derivatives of the spline or numerics from solving DE

For example given the code: ...
akozi's user avatar
  • 863
1 vote
1 answer
610 views

NDSolve memory usage [closed]

I am trying to solve numerically a system of linear ODEs with some quickly varying driving functions. The basic command is: ...
Mike's user avatar
  • 81
3 votes
0 answers
329 views

NDSolve with only discrete variables

Is is possible to use NDSolve with DiscreteVariables if there are no continuous-time variables? This fails: ...
ConvexMartian's user avatar
0 votes
2 answers
173 views

Accurate and efficient sampling of interpolated functions

Suppose we are given two interpolated functions ...
Math Gaudium's user avatar
1 vote
0 answers
151 views

Understanding the structure of an InterpolatingFunction [duplicate]

FunctionInterpolation[x^2, {x, 0, 9}] // InputForm returns: ...
anderstood's user avatar
  • 14.3k
1 vote
0 answers
104 views

`NDSolve & WhenEvent` return interpolation function with duplicate points ! How to avoid?

In a simple example I switch the ode depending on two events. ...
Ulrich Neumann's user avatar

15 30 50 per page