MathGroup Archive 2005

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

Search the Archive

Re: Yukawa

  • To: mathgroup at
  • Subject: [mg54829] Re: Yukawa
  • From: Peter Pein <petsie at>
  • Date: Wed, 2 Mar 2005 22:29:17 -0500 (EST)
  • References: <d03o8d$8ab$>
  • Sender: owner-wri-mathgroup at

dumb_founded wrote:
> I was using Mathematica to solve simultaneously the x and y equations
> of motion for a particle subjected to a Yukawa potential.  NDSolve
> predictably gave an interpolating function.  However, when I tried to
> plot this function, I got the error message that it is not real valued
> at certain pairs of points.  What is going on?  Can I do anything to
> remedy the situation?  
> Thanks.


numx[t_?NumericQ]:=solx[t]; numy[t_?NumericQ]:=soly[t];
       ^^^^^^^^^                   ^^^^^^^^^

Peter Pein

  • Prev by Date: About printing a Notebook
  • Next by Date: Re: New in 5.1.1?
  • Previous by thread: Re: Yukawa
  • Next by thread: Re: Yukawa