       Re: Ndsolve

• To: mathgroup at smc.vnet.net
• Subject: [mg84059] Re: [mg84023] Ndsolve
• From: DrMajorBob <drmajorbob at bigfoot.com>
• Date: Fri, 7 Dec 2007 06:58:20 -0500 (EST)
• References: <2887900.1197025122155.JavaMail.root@m35>

```InterpolationFunction _is_ a numerical answer. For instance, execute:

Clear[y]
y = y /. First@
NDSolve[{y'[x] == Cos@Sin[x^2], y == 0}, y, {x, 0, Pi}]
y
y
y[Pi]
Plot[y[x], {x, 0, Pi}]

and the output is

InterpolatingFunction[{{0.,3.14159}},<>]

0.

0.919768

2.52142

(and a plot)

Bobby

On Fri, 07 Dec 2007 02:01:10 -0600, DrunkenButterfly

> I'm confused about the "interpolation" thing. Why if I have some diff eq
> with boundary conditions NdSolve doesn't give me a numerical solution?
> And suppose I have
>
> y'[x]== f[x]
> with y[a]== b as a condition (a,b any numbers)
>
> How can I find f, for example? (Generalizing, how can I find f[c],
> where c is a number?)
>
> Thanks to everyone! And please, help me :(
>
>

--

DrMajorBob at bigfoot.com

```

• Prev by Date: Re: Re: expressions list -> equations list
• Next by Date: Re: Contour Lines colored by temperature scale
• Previous by thread: Re: Ndsolve
• Next by thread: Solving a set of 9 nonlinear equations with 11 parameters?