13 votes

How can I find the inverse of an interpolating function?

...
user avatar
  • 123k
6 votes

How can I find the inverse of an interpolating function?

InverseFunction also work in interpolating function. InverseFunction[t] /. s[[1]] is what you want. ...
user avatar
  • 35.9k
5 votes

How can I find the inverse of an interpolating function?

An other way with no loss of precision is to take the coordinates and values generated by NDSolve, reverse coordinates and values and generate the inverse interpolating function tau[t]. ...
user avatar
  • 16.4k
4 votes
Accepted

Need help to speed up the Gaussian quadrature

First of all, you should really put a bit more effort in learning the core language of Mathematica. (Look at those annoying loops! ) Then, if you insist on using Gauss quadrature and speed is ...
user avatar
  • 54.2k
3 votes

How can I find the inverse of an interpolating function?

We demonstrate how to get a fast accurate inverse. InverseFunction is highly accurate when it works, but it tends to be slow. It depends on ...
user avatar
  • 219k
2 votes

Need help to speed up the Gaussian quadrature

Here's an analytic solution. You have to know the order of the interpolation, which depends on the (spatial) order of the pde if using ...
user avatar
  • 219k
1 vote

How to optimize code for obtaining large data set?

OP seems to be open to different approaches, so I thought I try a graphical approach. Here I plot the vector field of the autonomous differential equation, and the region where both ...
user avatar
  • 4,777

Only top scored, non community-wiki answers of a minimum length are eligible