MathGroup Archive 2002

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: request help

  • To: mathgroup at
  • Subject: [mg33110] Re: [mg33088] request help
  • From: Tomas Garza <tgarza01 at>
  • Date: Sun, 3 Mar 2002 06:30:36 -0500 (EST)
  • References: <>
  • Sender: owner-wri-mathgroup at

I suggest you take a look at NDSolve in the Help Browser, or in The Book. I
quote: "NDSolve[eqns, y, {x, xmin, xmax}] finds a numerical solution to the
ordinary differential equations eqns for the function y with the independent
variable x in the range xmin to xmax". And also "NDSolve gives results in
terms of InterpolatingFunction objects". So there should be no problem.
Using the right notation, since f[x] is a known function I take an
artificial example, e.g., f[x] = x^2, and any initial conditions:

NDSolve[{y''[x] == x^2*y[x] + Cos[x],
   y'[0] == 1, y[0] == 1}, y[x], {x, 0, Pi}]

{{y[x] -> InterpolatingFunction[][x]}}

Now, I trust you know how to use the solution in terms of rules and
interpolation function. Otherwise, you must go back to basics.

Tomas Garza
Mexico City
----- Original Message -----
From: <luigi.rosa at>
To: mathgroup at
Subject: [mg33110] [mg33088] request help

> Hi!
> I'm a student of L'Aquila.
> I have a little problem: I have to solve an ordinary diff.
> with mathematica such as
> y''(x)=f(x) y(x) + cos(x) where y(x) is the unknown and f(x) is a known
> function which I Obtained as a numerical solution of another ord.
> equation .
> May you send me an example of doing this?
> Thank u in advance.
>                             Luigi
> ps
> sorry... i do not speak english very well...i'm italian!!!
> __________________________________________________________________
> Abbonati a Tiscali!
> Con Tiscali By Phone puoi anche ascoltare ed inviare email al telefono.
> Chiama Tiscali By Phone all' 892 800

  • Prev by Date: suse 7.3 font problems
  • Next by Date: mathematical problem
  • Previous by thread: request help
  • Next by thread: Re: How to read in the output of another nb file?