Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #15692 > unrolled thread
| Started by | Gary Wardall <gwardall@gmail.com> |
|---|---|
| First post | 2011-01-30 08:32 +0000 |
| Last post | 2011-01-30 08:32 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Problems integrating InterpolatingFunction Gary Wardall <gwardall@gmail.com> - 2011-01-30 08:32 +0000
| From | Gary Wardall <gwardall@gmail.com> |
|---|---|
| Date | 2011-01-30 08:32 +0000 |
| Subject | Re: Problems integrating InterpolatingFunction |
| Message-ID | <ii37n6$41o$1@smc.vnet.net> |
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 top | Article view | comp.soft-sys.math.mathematica
csiph-web