0
$\begingroup$

enter image description hereI just want to figure out how to "represent" or to inject an interpolating function into a numerical calculation. So, suppose i have an interpolating function $int$ and then i want to use NDSolve or Rationalize or any numerical operations involving $int$. How do I implement the routine. I have expanded this function using Series and it gave me the output $1+2x+..$ as i desire. But if I do any operation involving only the interpolating function itself, the output includes the interpolating box. How do i properly represent an interpolating function in an operation without the interpolating box appearing in the output? Thanks

Attached is the operation where TPint is the interpolating function.

$\endgroup$
  • 1
    $\begingroup$ Can you give example code where you couldn't get it to work? $\endgroup$ – J. M. will be back soon Oct 17 '18 at 2:43
  • $\begingroup$ E.g. NIntegrate[int[x], {x, 0, 1}] works fine for me.....So does NDSolve[{y'[x] == int[x], y[0] == -1}, y, {x, 0, 1}].... $\endgroup$ – Michael E2 Oct 17 '18 at 3:02
  • $\begingroup$ I have edited my question. Please see attached figure. Thanks $\endgroup$ – user583893 Oct 17 '18 at 3:06
  • 4
    $\begingroup$ It should maybe be TPint[x] or something like it; you're supposed to be applying an interpolating function to something. Otherwise it's like writing Sqrt[1 - (b/Sin)^(1 - q)]. $\endgroup$ – J. M. will be back soon Oct 17 '18 at 3:10
  • $\begingroup$ Or maybe series expanding will do the thing, I guess? I just want to manipulate the interpolating function so as to use it in numerical calculations. $\endgroup$ – user583893 Oct 17 '18 at 3:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.