Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #15692

Re: Problems integrating InterpolatingFunction

From Gary Wardall <gwardall@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Problems integrating InterpolatingFunction
Date 2011-01-30 08:32 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <ii37n6$41o$1@smc.vnet.net> (permalink)
References <ii2c82$ra6$1@smc.vnet.net>

Show all headers | View raw


On Jan 29, 6:43 pm, Sergio Miguel Terrazas Porras <sterr...@uacj.mx>
wrote:
> Hello group,
>
> I use NDSolve for a nonlinear differential equation, and I get an InterpolatingFunction, as expected.
>
> I can plot it, evaluate it, etc.
>
> The problem I have is that now I need to integrate 1/(the square of the InterpolatingFunction), and I get nothing but the input back.
>
> Any ideas?
>
> Thanks in advance.
>
> Sergio Terrazas

I'm a bit rusty with my ODE theory but you might try restating your
problem in terms of a system of ODE's.

Suppose:

y1=92=f(x)      &   f(x0)=y10       (The function you used with NDSolve
on originally.)

With:

y2=Integral( 1/(f(x)^2 )         (The function you really want at the
end.)


So:

y2=92=1/(y1)^2


Then the system to solve would be:


y1=92=f(x)               &    y1(x0)=y10

y2=92=1/(y1)^2      &     y2(x0)=0

I hope this or a some variation should be of some help.

Gary Wardall

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Re: Problems integrating InterpolatingFunction Gary Wardall <gwardall@gmail.com> - 2011-01-30 08:32 +0000

csiph-web